mirror of
https://github.com/adambard/learnxinyminutes-docs.git
synced 2025-08-01 04:20:39 +02:00
Fix Spacing Inconsistency (Switch Statement)
This commit is contained in:
@@ -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;
|
||||
|
Reference in New Issue
Block a user