mirror of
https://github.com/adambard/learnxinyminutes-docs.git
synced 2024-12-28 01:32:14 +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:
|
||||
String myAnswer = "maybe";
|
||||
switch(myAnswer){
|
||||
switch(myAnswer) {
|
||||
case "yes":
|
||||
System.out.println("You answered yes.");
|
||||
break;
|
||||
|
Loading…
Reference in New Issue
Block a user