Merge pull request #1582 from chaityabshah/master

[Java/EN] Fix Spacing Inconsistency (Switch Statement)
This commit is contained in:
Adam Bard 2015-10-18 00:06:29 +08:00
commit 15f8e4925f

View File

@ -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;