+ 3

Help!I am Italian

Why it doesn't work?------> public class Program { public static void main(String[] args) { Scanner myVar = new Scanner(System.in); System.out.println(myVar.nextLine()); if(myVar>12){System.ut.println("sei grande")}; } }

27th Dec 2016, 9:22 PM
Andrea
Andrea - avatar
2 Antworten
+ 1
you must. import java.util.Scanner
27th Dec 2016, 10:14 PM
Mofid
Mofid - avatar
+ 1
and use nextInt() for numbers
27th Dec 2016, 10:16 PM
Mofid
Mofid - avatar