5/27/2020 4:06:34 PM
Yes you can do that by using the fully qualified name within the main method.
java.util.Scanner sc = new java.util.Scanner(System.in);
String name = sc.nextLine();
use command line arguments input
Scanner class is a part of util package,isn't it?😢 Avinesh I wanted to know if it is possible to take input without using any common methods... like Scanner Class and BufferedReader.
You said to do it without importing any packages. Do you see any import statement? I just answered what was asked, isn't it Kaustav Saha ?
Learn Playing. Play Learning
Send us a message