how to create a Scanner Object in java

Java
Scanner console = new Scanner(System.in);
Source

Also in Java: