- 1
Java
https://code.sololearn.com/cmn6Ys4x1185/?ref=app Still no output
9 odpowiedzi
+ 2
Your program is correct
+ 1
You code is working and giving proper output its not showing any errors.
0
theres a mistype in main method parameter.
public static void main(Strings[] args)
it should be String without trailing s, like this
public static void main(String[] args)
0
still no output what can i do
0
if you have said it correct
0
then why is it not running
0
answer me
0
https://code.sololearn.com/cmn6Ys4x1185/?ref=app
you all can try and run it
0
take it easy.
dont change the class name. use class name that different than any java key word. avoid name that close to what java use, it'll cause an unexpected behavior.
use something like class MyProgram instead of Strings
using String as class name like your current code will cause an anomaly like this. because java also use String thus we shouldnt use it
and keep the main as it is. main should be same in every java program, tiny difference Javs wouldnt be able to find the main method to run. no matter what class name youre using main should look like this
public static void main(String[]args)
the only safe thing to change is args, but its better to keep it that way since its describe what it is.