mirror of
https://github.com/adambard/learnxinyminutes-docs.git
synced 2024-11-27 04:44:08 +03:00
Fix Spacing Inconsistency (Switch Statement)
This commit is contained in:
parent
0e6d9f6fe9
commit
552a885df5
@ -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