Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions Java Code/Singleton.java
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ public class Singleton {
"o", "o", "o", "o", "o", "o", "p", "p", "q", "r", "r", "r", "r",
"r", "r", "s", "s", "s", "s", "t", "t", "t", "t", "t", "t", "u",
"u", "u", "u", "v", "v", "w", "w", "x", "y", "y", "z",};

// using of ArrayList is better than Vector
private LinkedList<String> letterList = new LinkedList<String> (Arrays.asList(scrabbleLetters));

// Used to slow down 1st thread
Expand Down Expand Up @@ -103,4 +103,4 @@ public LinkedList<String> getTiles(int howManyTiles){

}

}
}