Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

node in java

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: #node #java
ADD COMMENT
Topic
Name
8+6 =