asrayousuf / ScrabbleWordRecommender

0 stars 0 forks source link

Constraint handling function #32

Closed aravindsrivats closed 9 years ago

aravindsrivats commented 9 years ago

Our findPossibleWords will return a HashMap<String, String> String 1 is the Key = sorted word String 2 is value = "score word1 word2 word3 . . ."

But you have implemented a List. How are we change that?

ekanshmittal commented 9 years ago
ArrayList<String> findPossibleWords(String rack, int numOfBlanks) {

it is returning arraylist

ekanshmittal commented 9 years ago

modify and pass us arrayList

aravindsrivats commented 9 years ago

We'll have to re-form your result back into the HashMap. That is a problem.

ekanshmittal commented 9 years ago

but u are passing arraylist in the first list check the code

ekanshmittal commented 9 years ago

Have changed the return type to HashMap<String, String>.