Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- *
- * 2:
- * Error: Could not find or load main class Hello
- Caused by: java.lang.ClassNotFoundException: Hello
- Error was fixed by renaming Helo to Hello
- According to the name of the file it is called "Hello.java", so
- this means it is going to be looking for the class main in the Hello class.
- But if there is not Hello class what will the program do? It needs to get
- its main class from somewhere, so thats why it calls an error.
- * 3:
- * It doesn't matter I mean for all we care that misspelled word
- * could just be some dudes name. If it's in the " " it doesn't matter
- * how it is spelled it is classified as a regular 'ol string.
- *
- * 5:
- * the world's over mr.slata, it's all gone.
- * (It's 4 errors by the way)
- *
- * 6:
- * Exception in thread "main" java.lang.Error: Unresolved compilation problem:
- Syntax error, insert ";" to complete BlockStatements
- at Hello.main(Hello.java:30)
- *
- */
- public class Hello {
- public static void main(String[] args) {
- System.out.println("Hello, World!");
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement