mirror of
https://github.com/adambard/learnxinyminutes-docs.git
synced 2025-08-09 08:16:58 +02:00
Add space to comment prior to switch string
+ Add space to comment (after //) prior to switch on string example
This commit is contained in:
@@ -277,7 +277,7 @@ public class LearnJava {
|
||||
}
|
||||
System.out.println("Switch Case Result: " + monthString);
|
||||
|
||||
//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";
|
||||
switch(myAnswer){
|
||||
case "yes":
|
||||
|
Reference in New Issue
Block a user