forked from jbloch/effective-java-3e-source-code
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathTest.java
More file actions
23 lines (20 loc) · 631 Bytes
/
Test.java
File metadata and controls
23 lines (20 loc) · 631 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
package effectivejava;
import java.math.BigInteger;
import java.util.Random;
import java.util.*;
public class Test {
private static BigInteger bigInteger;
public enum Rank {
JACK,
QUEEN,
KING
}
public static void main(String[] args) {
bigInteger = BigInteger.probablePrime(3, new Random());
System.out.println(bigInteger);
System.out.println(Boolean.valueOf(true) == Boolean.TRUE);
System.out.println(Boolean.TRUE == Boolean.TRUE);
System.out.println(Boolean.TRUE);
System.out.println(EnumSet.of(Rank.JACK, Rank.QUEEN, Rank.KING));
}
}