//=================================================================================================
public class LinkedListNode {
//-------------------------------------------------------------------------------------------------
    private String word;
    private LinkedListNode next;
//-------------------------------------------------------------------------------------------------
    public LinkedListNode(String word,LinkedListNode next) {

        this.word = word;
        this.next = next;
    }
//-------------------------------------------------------------------------------------------------
    public String toString() {

        return(word);
    }
//-------------------------------------------------------------------------------------------------
    public LinkedListNode getNext() {

        return(next);
    }
//-------------------------------------------------------------------------------------------------
}
//=================================================================================================
