Fix Spacing Inconsistency (Switch Statement)

This commit is contained in:
Chaitya Shah 2015-10-16 21:50:34 -04:00
parent 0e6d9f6fe9
commit 552a885df5

View File

@ -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;