mirror of
https://github.com/adambard/learnxinyminutes-docs.git
synced 2025-04-26 15:13:56 +00:00
Merge pull request #1582 from chaityabshah/master
[Java/EN] Fix Spacing Inconsistency (Switch Statement)
This commit is contained in:
commit
15f8e4925f
@ -331,7 +331,7 @@ public class LearnJava {
|
|||||||
|
|
||||||
// Starting in Java 7 and above, switching Strings works like this:
|
// Starting in Java 7 and above, switching Strings works like this:
|
||||||
String myAnswer = "maybe";
|
String myAnswer = "maybe";
|
||||||
switch(myAnswer){
|
switch(myAnswer) {
|
||||||
case "yes":
|
case "yes":
|
||||||
System.out.println("You answered yes.");
|
System.out.println("You answered yes.");
|
||||||
break;
|
break;
|
||||||
|
Loading…
Reference in New Issue
Block a user