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;
  }
}

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

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

  public Integer scrabbleScore(String userWord) {

    HashMap<String, Integer> scrabbleKey = new HashMap<String, Integer>();
    scrabbleKey.put("a", 1);
    scrabbleKey.put("b", 3);
    scrabbleKey.put("c", 3);
    scrabbleKey.put("d", 2);
    scrabbleKey.put("e", 1);
    scrabbleKey.put("f", 4);
    scrabbleKey.put("g", 2);
    scrabbleKey.put("h", 4);
    scrabbleKey.put("i", 1);
    scrabbleKey.put("j", 8);
    scrabbleKey.put("k", 5);
    scrabbleKey.put("l", 1);
    scrabbleKey.put("m", 3);
    scrabbleKey.put("n", 1);
    scrabbleKey.put("o", 1);
    scrabbleKey.put("p", 3);
    scrabbleKey.put("q", 10);
    scrabbleKey.put("r", 1);
    scrabbleKey.put("s", 1);
    scrabbleKey.put("t", 1);
    scrabbleKey.put("u", 1);
    scrabbleKey.put("v", 4);
    scrabbleKey.put("w", 4);
    scrabbleKey.put("x", 8);
    scrabbleKey.put("y", 4);
    scrabbleKey.put("z", 10);

    // char result = userCharacters[0];
    // String charString = Character.toString(result);
    String[] userLetters = [];
    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;
  }
}

Add HashMap key and value for scrabble letters.