I am trying to run a Java program on cmd but it throws
Error: Could not find or load main class sample2
sample2.java
is the file name and I have no idea. I am using a text editor only. sample2.java
Code
class MyFirstApp {
public static void main(String[] args) {
System.out.println("I rule");
System.out.println("The world");
}
}