public class MyLLAnswers { MyNode head; /* FROM HERE - FROM HERE - FROM HERE - FROM HERE - FROM HERE */ public boolean twoInARow() { MyNode nd = head; if (head == null) return false; while (nd.getNext() != null) { if (nd.getLetter() == nd.getNext().getLetter()) return true; nd=nd.getNext(); } return false; } public boolean isWord(String str) { String s=""; for (MyNode nd=head; nd!=null; nd=nd.getNext()) s += nd.getLetter(); if (s.equals(str)) return true; else return false; } public void deleteLast() { MyNode nd = head; if (head == null || head.getNext() == null) { head = null; return; } while (nd.getNext().getNext() != null) nd = nd.getNext(); nd.setNext(null); } /* You can use the yourMainMethod method to do any testing you'd like to do (none is also allowed). It will be automatically called when you run the class without any command line parameters. */ public static void yourMainMethod() { } /* TO HERE - TO HERE - TO HERE - TO HERE - TO HERE - TO HERE */ public MyLLAnswers() { head = null; } public void insert(char c) { MyNode nd = new MyNode(c); nd.setNext(head); head = nd; } public String toString() { String str=""; MyNode nd = head; while (nd != null) { str += nd.getLetter()+" "; nd=nd.getNext(); } return str; } public static void main(String[] args) { MyLLAnswers theList = new MyLLAnswers(); int i,n; if (args.length==0) yourMainMethod(); else { for (i=0; i