Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

java node class

public class Node {
 
  public String data;
  private Node next;
 
  public Node(String data) {
    this.data = data;
    this.next = null;
  }
 
  public void setNextNode(Node node) {
    this.next = node;
  }
 
  public Node getNextNode() {
    return this.next;
  }
 
}
Source by www.codecademy.com #
 
PREVIOUS NEXT
Tagged: #java #node #class
ADD COMMENT
Topic
Name
7+2 =