Discussion :: Objects and Collections - Finding the output (Q.No.1)
|Nagaraju Revalla said: (May 10, 2013)|
|If I run as >java Test red green blue white.
Then what will happen?
|Narmadha Valli said: (Oct 3, 2015)|
|When I run the program automatically I will get the error. Am not able to give inputs. Please give the solution.|
|Ranjit said: (Dec 5, 2015)|
|If you try to run this program on EditPlus you can't give input, try to run on CMD prompt.
> javac Test.Java.
> java Test red green blue.
> java Test red green blue white.
|Uwe said: (Mar 10, 2017)|
|For my understanding it seems that the user enters the following: java Test red green blue, means 5 Strings, not 3. How do I understand that only red green blue is meant as an input?|
|Ifanboi said: (Oct 6, 2018)|
Use ide like eclipse to give direct arguments. Put red green blue in arguments to use them as arguments.
Post your comments here:
Email : (optional)
» Your comments will be displayed only after manual approval.