Merge pull request #2235 from jhtervay/master

[Java/EN] Fixed typo(s) in Java
This commit is contained in:
Geoff Liu 2016-04-19 18:40:59 +02:00
commit 421dab5dca

View File

@ -407,9 +407,9 @@ public class LearnJava {
// in an easy way. Usually you end up in the following way: // in an easy way. Usually you end up in the following way:
private static final Set<String> COUNTRIES = new HashSet<String>(); private static final Set<String> COUNTRIES = new HashSet<String>();
static { static {
validCodes.add("DENMARK"); COUNTRIES.add("DENMARK");
validCodes.add("SWEDEN"); COUNTRIES.add("SWEDEN");
validCodes.add("FINLAND"); COUNTRIES.add("FINLAND");
} }
// But there's a nifty way to achieve the same thing in an // But there's a nifty way to achieve the same thing in an