update,
This commit is contained in:
19
_resources/it114105/itp4510/Lab03/Lab3.1/src/DoublyNode.java
Normal file
19
_resources/it114105/itp4510/Lab03/Lab3.1/src/DoublyNode.java
Normal file
@@ -0,0 +1,19 @@
|
||||
public class DoublyNode {
|
||||
|
||||
Object data;
|
||||
DoublyNode previous;
|
||||
DoublyNode next;
|
||||
|
||||
DoublyNode(Object data){
|
||||
this.data = data;
|
||||
previous = next = null;
|
||||
}
|
||||
|
||||
DoublyNode(Object data, DoublyNode previous, DoublyNode next){
|
||||
this.data = data;
|
||||
this.previous = previous;
|
||||
this.next = next;
|
||||
}
|
||||
|
||||
|
||||
}
|
Reference in New Issue
Block a user