update,
This commit is contained in:
17
it114105/itp4510/Lab03/Lab3.3/ListNode.java
Normal file
17
it114105/itp4510/Lab03/Lab3.3/ListNode.java
Normal file
@@ -0,0 +1,17 @@
|
||||
public class ListNode {
|
||||
public Object data; // set to public for implementation convenience
|
||||
public ListNode next;
|
||||
|
||||
public ListNode(Object data) {
|
||||
this.data = data;
|
||||
this.next = null;
|
||||
}
|
||||
|
||||
public ListNode(Object data, ListNode next) {
|
||||
this.data = data;
|
||||
this.next = next;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user