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?
1 Answer
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.