diff --git a/java.html.markdown b/java.html.markdown index fa5cf8fc..c2c1a18b 100644 --- a/java.html.markdown +++ b/java.html.markdown @@ -331,7 +331,7 @@ public class LearnJava { // Starting in Java 7 and above, switching Strings works like this: String myAnswer = "maybe"; - switch(myAnswer){ + switch(myAnswer) { case "yes": System.out.println("You answered yes."); break;