0

Why java.util.scanner can't be found

import java.util.scanner; public class Program { public static void main(String[] args) { Scanner age=new Scanner(System.in); int age; System.out.println("Enter Age"); age=age.nextInt; if(age <= 0) { System.out.println("Error"); } else if(age <= 16) { System.out.println("Too Young"); } else if(age < 100) { System.out.println("Welcome!"); } else { System.out.println("Really?"); } } }

22nd Jun 2018, 9:32 AM
K Yash
K Yash - avatar
2 Antworten
0
okay thanks
22nd Jun 2018, 9:56 AM
K Yash
K Yash - avatar