0

First Attempt at program not working

3rd Dec 2016, 8:25 AM
Triston Brown
Triston Brown - avatar
6 Respostas
+ 1
Its running dude. May be a bug
3rd Dec 2016, 8:42 AM
Aditya kumar pandey
Aditya kumar pandey - avatar
+ 1
Then, use Program as class name instead of ExampleProgram. Because java compiler access or compile code like. file_name.main() So, ExampleProgram is not a file name in playground. like public class Program { public static void main(String[] args) { System.out.println("Hello world"); } }
3rd Dec 2016, 8:47 AM
Aditya kumar pandey
Aditya kumar pandey - avatar
0
code btw public class ExampleProgram { public static void main(String [ ] args) { System.out.println("Hello World"); } }
3rd Dec 2016, 8:29 AM
Triston Brown
Triston Brown - avatar
0
It works when I compile it in the code playground...
3rd Dec 2016, 8:36 AM
Stefan du Toit
Stefan du Toit - avatar
0
I'm getting a message saying the file isn't found
3rd Dec 2016, 8:43 AM
Triston Brown
Triston Brown - avatar
0
nevermind it doesn't give me the error now. instead nothing happens when I try to compile
3rd Dec 2016, 8:49 AM
Triston Brown
Triston Brown - avatar