Fixed typo(s) in Java (EN)

This commit is contained in:
Justin Tervay 2016-04-19 12:28:31 -04:00
parent 0edf991301
commit 898dcda0f2

View File

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