diff --git a/Java Code/Singleton.java b/Java Code/Singleton.java index 4ce63b3..6a18d31 100644 --- a/Java Code/Singleton.java +++ b/Java Code/Singleton.java @@ -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 letterList = new LinkedList (Arrays.asList(scrabbleLetters)); // Used to slow down 1st thread @@ -103,4 +103,4 @@ public LinkedList getTiles(int howManyTiles){ } -} \ No newline at end of file +}