0
first u have to import scanner from import java.util.scanner and then in ur code u shd type
Scanner input = new Scanner(System.in);
int a;
system.out.println("enter a num");
a = input.nextint() // since it is integer
system.out.println("the entered num is" + a);
Happy coding