0
First Attempt at program not working
6 Respostas
+ 1
Its running dude. May be a bug
+ 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");
}
}
0
code btw
public class ExampleProgram {
public static void main(String [ ] args) {
System.out.println("Hello World");
}
}
0
It works when I compile it in the code playground...
0
I'm getting a message saying the file isn't found
0
nevermind it doesn't give me the error now. instead nothing happens when I try to compile