+ 1

Unsure of the error message I am receiving

Hello! just following along with the lessons here, I like to practice / do drills of the code I am currently learning and I wrote this here. public class AgeVerif { public static void main(String[] args) { int age = 20; if (age < 16) { System.out.prinln("Too Young to enter"); } else { System.out.println("Welcome!"); } } } As far as I can tell it looks identical to the code that was typed as the example, (which works fine) except of course the int values and the name of the class just for practical learning for myself. And I get this error message.... ..\Playground\:6: error: cannot find symbol System.out.prinln("Too Young to enter"); ^ symbol: method prinln(String) location: variable out of type PrintStream 1 error

7th Jun 2017, 4:20 PM
Mitchell Stallard
Mitchell Stallard - avatar
4 Respostas
+ 25
Method name is println. Insert "t" letter.
7th Jun 2017, 4:34 PM
Igor Makarsky
Igor Makarsky - avatar
0
Hahahahah ohhhhh my god.. Thanks!
7th Jun 2017, 8:12 PM
Mitchell Stallard
Mitchell Stallard - avatar
0
to young to enter
8th Jun 2017, 6:05 PM
vicky
0
no ps
8th Jun 2017, 10:31 PM
len