summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGeoff Liu <cangming.liu@gmail.com>2016-04-19 18:40:59 +0200
committerGeoff Liu <cangming.liu@gmail.com>2016-04-19 18:40:59 +0200
commit421dab5dcac9218ef9205244ad57689a925fad48 (patch)
tree9142f1990eae0f0afb5f8b69d073fc8e4348df1b
parent0edf991301fc4bafeda383649361c67f2f4e0235 (diff)
parent898dcda0f2be31ed3ee232a623d854e63c373082 (diff)
Merge pull request #2235 from jhtervay/master
[Java/EN] Fixed typo(s) in Java
-rw-r--r--java.html.markdown6
1 files changed, 3 insertions, 3 deletions
diff --git a/java.html.markdown b/java.html.markdown
index 48e6ec75..ed7e4f53 100644
--- a/java.html.markdown
+++ b/java.html.markdown
@@ -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