initiate scanner java code example
Example 1: how to create a Scanner Object in java
Scanner console = new Scanner(System.in);
Example 2: initialize scanner java
Scanner sc=new Scanner(System. in);
Scanner console = new Scanner(System.in);
Scanner sc=new Scanner(System. in);