How to lookup character from Word using getScore?
<p>Created a class Word. The purpose of this class is to take in words from players using a linked list.  The Player class uses the word to get a score value for each character.  I'm confused how to get each character using the object Word using a method getScore in the class Player.</p>

<pre><code>public class Word{
 private String guessWord;

 public Word(String w){
  if(w.length() &lt; 1)
   throw new IllegalArgumentException("Invalid entry.");

  guessWord = w.toUpperCase(); 
 }

 public String getWord(){
  String input = JOptionPane.showInputDialog("Enter your word: ");
  guessWord = input;
  return guessWord;
 }


}

public class Player {
 private String name;
 WordList list = new WordList();

 public Player(String name){
  if(name == null || name.equals(" "))
   throw new IllegalArgumentException("Must enter a name!!!");
  this.name = name;

 }

 public void addWord(Word w){
   list.append(w);
 }
 public int getScore(){
  if(Character.isLetter(letters))
  if( == 'A' || letters == 'E' || letters == 'I' || letters == 'O' || letters == 'U') 
   return 0;
  else if(letters == 'K' || letters == 'V' || letters == 'F' || letters == 'W') return 5;
  else if(letters == 'X' || letters == 'Q') return 10;
  } // If statement
 }
 public String getName(){
  return name;
 }
}
</code></pre>
