title: Calling a method with a List Atrribute in Java
body: <p>I am currently looking to call a method that gets me a scrabble score of multiple words and will return the word with the highest score. I have been able to make the method that gets me the score of the words, the next part is to be able to call a method with multiple words and it will return the word with the highest score. </p>
  
  <pre><code>public String highestScoringWord(List&lt;String&gt; words) {
      // TODO: find the word with the highest score
      int highestScore = 0;
      String HighScoreWord = "";
      for(int i=0; i&lt;words.size(); i++){
          int currentScore = scoreForWord(words.get(i));
          if(currentScore&gt;highestScore){
              HighScoreWord = words.get(i);
          };
      };
  
      return HighScoreWord;
  }
  </code></pre>
  
  <p>I am using blueJ, how will I be able to use it's interface or codePad to call this method with a list of words. </p>
  
  <p>Thank you</p>