1
0
mirror of https://github.com/adambard/learnxinyminutes-docs.git synced 2025-08-15 11:14:24 +02:00

Edit string switch addition

+ fix typos:
     line 284: fix prinln to println
     line 293: fix sustem to system
This commit is contained in:
Cameron Schermerhorn
2015-10-07 08:56:29 -04:00
parent ec125fb6e7
commit 18b1c0c4d6

View File

@@ -281,7 +281,7 @@ public class LearnJava {
String myAnswer = "maybe"; String myAnswer = "maybe";
switch(myAnswer){ switch(myAnswer){
case "yes": case "yes":
System.out.prinln("You answered yes."); System.out.println("You answered yes.");
break; break;
case "no": case "no":
System.out.println("You answered no."); System.out.println("You answered no.");
@@ -290,7 +290,7 @@ public class LearnJava {
System.out.println("You answered maybe."); System.out.println("You answered maybe.");
break; break;
default: default:
Sustem.out.println("You answered " + myAnswer); System.out.println("You answered " + myAnswer);
break; break;
} }