SHARE
TWEET

Untitled

a guest Sep 20th, 2019 97 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. /*
  2.  *
  3.  * 2:
  4.  * Error: Could not find or load main class Hello
  5.    Caused by: java.lang.ClassNotFoundException: Hello
  6.    
  7.    Error was fixed by renaming Helo to Hello
  8.    
  9.    According to the name of the file it is called "Hello.java", so
  10.    this means it is going to be looking for the class main in the Hello class.
  11.    But if there is not Hello class what will the program do? It needs to get
  12.    its main class from somewhere, so thats why it calls an error.
  13.    
  14.    
  15.  * 3:
  16.  * It doesn't matter I mean for all we care that misspelled word
  17.  * could just be some dudes name. If it's in the " " it doesn't matter
  18.  * how it is spelled it is classified as a regular 'ol string.
  19.  *
  20.  * 5:
  21.  * the world's over mr.slata, it's all gone.
  22.  * (It's 4 errors by the way)
  23.  *
  24.  * 6:
  25.  * Exception in thread "main" java.lang.Error: Unresolved compilation problem:
  26.     Syntax error, insert ";" to complete BlockStatements
  27.  
  28.     at Hello.main(Hello.java:30)
  29.  
  30.  *
  31.  */
  32.  
  33.  
  34. public class Hello {
  35.     public static void main(String[] args) {
  36.         System.out.println("Hello, World!");
  37.     }
  38. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top