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?"); } } }
1 Resposta
0
okay thanks