linkedLists
Class Node

java.lang.Object
  extended by linkedLists.Node

public class Node
extends java.lang.Object

Node of a singly linked list of strings


Constructor Summary
Node()
          default constructor
Node(java.lang.String s, Node n)
          Creates a node with the given element and next node
 
Method Summary
 java.lang.String getElement()
          Returns the element of this node
 Node getNext()
          Returns the next node of this node.
 void setElement(java.lang.String s)
          Sets the element of this node
 void setNext(Node n)
          Sets the next field of this node.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Node

public Node()
default constructor


Node

public Node(java.lang.String s,
            Node n)
Creates a node with the given element and next node

Method Detail

getElement

public java.lang.String getElement()
Returns the element of this node


getNext

public Node getNext()
Returns the next node of this node.


setElement

public void setElement(java.lang.String s)
Sets the element of this node


setNext

public void setNext(Node n)
Sets the next field of this node.