1
0
mirror of https://github.com/adambard/learnxinyminutes-docs.git synced 2025-08-13 18:24:39 +02:00

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

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;