So I always use Eclipse to run my java stuff, I have no clue how to use command prompts. I have an assessment that will be graded by a bot where 2 string parameters will get passed into a function which returns a boolean value.
The bot is going to use a command like "java main.java xyz zyx" to open the file (assuming xyz and zyx are the strings).
So my question is, to catch those 2 strings, do I have to use 2 variables to catch the 2 string. For example: string1 = Scanner.nextln(); // This will catch "xyz" into string1?? string2 = Scanner.nextln(); // This will catch "zyx"??
Or does string 1 catch both "xyz zyx" and I have to use a loop to separate them into 2 strings? Thanks in advance :)
String[] args.