0
How does the Code Coach work (Java)?
Where to get input for your tasks and how to return results? I tried to get the first element of the args array, work with the string and return resulted string in my own static method called inside the main method. But tests say that the output is empty.
1 ответ
+ 1
args array is main method argument. Used to read command line arguments.
Input taken through input methods like by Scanner objects.
In code coach, its like complete the program with a "given description and half code to read inputs". Completing the rest of Program to get desired output is your task.
From there
//your code goes here
You need to complete the program from next line of above statement.. For easy level, there already given for taking inputs..
For level medium to high, you have write code for taking inputs also...