20th Aug 2020, 5:28 PM
Ayush
Ayush - avatar
9 odpowiedzi
+ 2
Your program is correct
21st Aug 2020, 3:56 PM
Ayush Maurya🇮🇳
Ayush Maurya🇮🇳 - avatar
+ 1
You code is working and giving proper output its not showing any errors.
21st Aug 2020, 4:51 AM
A S Raghuvanshi
A S Raghuvanshi - avatar
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)
20th Aug 2020, 5:32 PM
Rei
Rei - avatar
0
still no output what can i do
20th Aug 2020, 5:38 PM
Ayush
Ayush - avatar
0
if you have said it correct
20th Aug 2020, 5:38 PM
Ayush
Ayush - avatar
0
then why is it not running
20th Aug 2020, 5:39 PM
Ayush
Ayush - avatar
0
answer me
20th Aug 2020, 5:39 PM
Ayush
Ayush - avatar
20th Aug 2020, 5:39 PM
Ayush
Ayush - avatar
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.
20th Aug 2020, 5:40 PM
Rei
Rei - avatar