Eingabekonsole mit Java

Scanner sc = new Scanner(System.in);//Creating object of Scannr class
int x = sc.nextInt();//Getting input from user
Defeated Dragonfly