I am working on java project where i need to get data from console. Following are my code and output case.
public static void main(String[] args) {
String test= "Hii test";
System.out.println(test);
}
Now in this program the output will be print "Hii test" now I want to get this data from console without using test variable. Please suggest how I get this data from console?