mirror of
https://github.com/adambard/learnxinyminutes-docs.git
synced 2024-12-24 01:51:38 +00:00
Added missing new in HashSet instantiation
This commit is contained in:
parent
4593c65543
commit
231b60b7c0
@ -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");
|
||||||
|
Loading…
Reference in New Issue
Block a user