0

what is difference between cmd arguments and scanner class in java

is there only one difference that can be explained or there are any other differences too?

24th Mar 2018, 5:46 AM
Prabhat Kumar
Prabhat Kumar - avatar
1 Resposta
0
When using cmd line args you enter them like this java File.java arg1 arg2 arg3. The Scanner class when taking input you should use with a print statement. It outputs text of your choice to tell the user what to input. It then has several methods to take different kinds of input.
1st Apr 2018, 8:32 PM
Freetoast
Freetoast - avatar