mirror of
https://github.com/adambard/learnxinyminutes-docs.git
synced 2025-01-09 00:23:02 +03:00
Edit string switch addition
+ fix typos: line 284: fix prinln to println line 293: fix sustem to system
This commit is contained in:
parent
ec125fb6e7
commit
18b1c0c4d6
@ -281,7 +281,7 @@ public class LearnJava {
|
||||
String myAnswer = "maybe";
|
||||
switch(myAnswer){
|
||||
case "yes":
|
||||
System.out.prinln("You answered yes.");
|
||||
System.out.println("You answered yes.");
|
||||
break;
|
||||
case "no":
|
||||
System.out.println("You answered no.");
|
||||
@ -290,7 +290,7 @@ public class LearnJava {
|
||||
System.out.println("You answered maybe.");
|
||||
break;
|
||||
default:
|
||||
Sustem.out.println("You answered " + myAnswer);
|
||||
System.out.println("You answered " + myAnswer);
|
||||
break;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user