Added missing new in HashSet instantiation

This commit is contained in:
Andy 2015-10-31 20:05:05 +10:30
parent 4593c65543
commit 231b60b7c0

View File

@ -416,7 +416,7 @@ public class LearnJava {
// easier way, by using something that is called Double Brace // easier way, by using something that is called Double Brace
// Initialization. // Initialization.
private static final Set<String> COUNTRIES = HashSet<String>() {{ private static final Set<String> COUNTRIES = new HashSet<String>() {{
add("DENMARK"); add("DENMARK");
add("SWEDEN"); add("SWEDEN");
add("FINLAND"); add("FINLAND");