mirror of
https://github.com/adambard/learnxinyminutes-docs.git
synced 2024-12-23 09:41:36 +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
|
||||
// Initialization.
|
||||
|
||||
private static final Set<String> COUNTRIES = HashSet<String>() {{
|
||||
private static final Set<String> COUNTRIES = new HashSet<String>() {{
|
||||
add("DENMARK");
|
||||
add("SWEDEN");
|
||||
add("FINLAND");
|
||||
|
Loading…
Reference in New Issue
Block a user