title: Scrabble code in java
body: <p>I have to write a scrabble code in java without the use of if/switch statements. this is what i have so far</p>
  
  <pre><code>public class Scrabble {
  
  
  public static void main(String[] args) {
  }
  
      public static int computeScore(String word) {
  
  String alphabet = "ABCDEFGHIJKLMNOPQRSTUVWXYZ";
      int[] values = {1,3,3,2,1,4,2,4,1,8,5,1,3,1,3,3,10,1,1,1,1,4,4,8,4,10};
      int sum = 0;
      for(int i = 0; i &lt;word.length();i++) {
          ????
  
      }
  return sum;
  
  }
  
  }
  </code></pre>
  
  <p>I need some help, I had the idea of finding the character inside the string and finding its value but not sure how to write it out. Any help will be great! Thanks!</p>