forked from rick2785/JavaCode
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathGetTheTiles.java
More file actions
26 lines (14 loc) · 614 Bytes
/
GetTheTiles.java
File metadata and controls
26 lines (14 loc) · 614 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
import java.util.LinkedList;
public class GetTheTiles implements Runnable {
public void run(){
// How you create a new instance of Singleton
Singleton newInstance = Singleton.getInstance();
// Get unique id for instance object
System.out.println("1st Instance ID: " + System.identityHashCode(newInstance));
// Get all of the letters stored in the List
System.out.println(newInstance.getLetterList());
LinkedList<String> playerOneTiles = newInstance.getTiles(7);
System.out.println("Player 1: " + playerOneTiles);
System.out.println("Got Tiles");
}
}