I create and populate someLinkedList with '*' characters as soon as a gameLinkedList object is created, so my class is something like
private int size; public class gameLinkedList{ private CharNode game; public gameLinkedList(String someWord){ size=someWord.length(); for(int i=0;i<size;i++){CharNode aNode = new CharNode('p'); if(CharNode==null){game=aNode;} else{aNode.setLink(game);game=a;} } } public boolean exists(guess){return someWord.indexOf(guess);} //take a character, compare it to all characters public boolean play(char c){ CharNode newNode=new CharNode(guess); if(exists(guess)){ //insert newNode into aNode at the position corresponding to the guess character's //position in someWord }} }