import java.util.HashMap;
import java.util.ArrayList;

public class Scrabble {
  public static void main(String[] args) {}

  public Object scrabbleScore(String userWord) {

    String[] scrabbleLetters = {"a"};
    Integer[] scrabbleValues = {1};


    // char result = userCharacters[0];
    // String charString = Character.toString(result);
    ArrayList<String> userLetters = new ArrayList<String>();
    String stringOfChar = "";
    for (Integer i = 0 ; i < userWord.length(); i++){
      char[] userCharacters = userWord.toCharArray();
      char result = userCharacters[i];
      stringOfChar = Character.toString(result);
      userLetters.add(stringOfChar);
    }

    // Integer scrabbleScore = 0
    // for (Integer i = 0 ; i < userLetters.length(); i++){
    //
    // }

    // for (Integer i = 0; i < userWord.length ; i++)
    // String[] stringUserChars = String.valueOf(userCharacters);



    return userLetters;




    // Integer total = 0;
    //   for (Integer value : scrabbleKey.get(stringUserChars)) {
    //     total = total + value;
    //   }
    // return total;
  }
}

@@ -130,14 +130,15 @@
 lic 
-Object
+Integer
  scr
@@ -176,78 +176,834 @@
     
-String%5B%5D scrabbleLetters = %7B%22a%22%7D;%0A    Integer%5B%5D scrabbleValues = %7B1%7D;%0A
+HashMap%3CString, Integer%3E scrabbleKey = new HashMap%3CString, Integer%3E();%0A    scrabbleKey.put(%22a%22, 1);%0A    scrabbleKey.put(%22b%22, 3);%0A    scrabbleKey.put(%22c%22, 3);%0A    scrabbleKey.put(%22d%22, 2);%0A    scrabbleKey.put(%22e%22, 1);%0A    scrabbleKey.put(%22f%22, 4);%0A    scrabbleKey.put(%22g%22, 2);%0A    scrabbleKey.put(%22h%22, 4);%0A    scrabbleKey.put(%22i%22, 1);%0A    scrabbleKey.put(%22j%22, 8);%0A    scrabbleKey.put(%22k%22, 5);%0A    scrabbleKey.put(%22l%22, 1);%0A    scrabbleKey.put(%22m%22, 3);%0A    scrabbleKey.put(%22n%22, 1);%0A    scrabbleKey.put(%22o%22, 1);%0A    scrabbleKey.put(%22p%22, 3);%0A    scrabbleKey.put(%22q%22, 10);%0A    scrabbleKey.put(%22r%22, 1);%0A    scrabbleKey.put(%22s%22, 1);%0A    scrabbleKey.put(%22t%22, 1);%0A    scrabbleKey.put(%22u%22, 1);%0A    scrabbleKey.put(%22v%22, 4);%0A    scrabbleKey.put(%22w%22, 4);%0A    scrabbleKey.put(%22x%22, 8);%0A    scrabbleKey.put(%22y%22, 4);%0A    scrabbleKey.put(%22z%22, 10);
 %0A%0A  
@@ -1099,33 +1099,24 @@
 t);%0A    
-ArrayList%3C
 String
-%3E
+%5B%5D
  userLet
@@ -1126,31 +1126,10 @@
 s = 
-new ArrayList%3CString%3E()
+%5B%5D
 ;%0A  
@@ -1395,27 +1395,24 @@
 ;%0A    %7D%0A%0A   
- //
  Integer scr
@@ -1425,27 +1425,24 @@
 core = 0%0A   
- //
  for (Intege
@@ -1487,21 +1487,12 @@
 +)%7B%0A
-    //
 %0A   
- //
  %7D%0A%0A

Add HashMap key and value for scrabble letters.