SHARE
TWEET

Untitled

a guest Mar 6th, 2014 80 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. bash-4.2$ cat smiley.java
  2. for(int i=0;i<Math.random()*255;i++){System.out.print(":)");}
  3.  
  4. bash-4.2$ javac smiley.java
  5. smiley.java:1: error: class, interface, or enum expected
  6. for(int i=0;i<Math.random()*255;i++){System.out.print(":)");}
  7. ^
  8. smiley.java:1: error: class, interface, or enum expected
  9. for(int i=0;i<Math.random()*255;i++){System.out.print(":)");}
  10.             ^
  11. smiley.java:1: error: class, interface, or enum expected
  12. for(int i=0;i<Math.random()*255;i++){System.out.print(":)");}
  13.                                 ^
  14. smiley.java:1: error: class, interface, or enum expected
  15. for(int i=0;i<Math.random()*255;i++){System.out.print(":)");}
  16.                                                             ^
  17. 4 errors
  18.  
  19. bash-4.2$ java -version
  20. java version "1.7.0_51"
  21. OpenJDK Runtime Environment (IcedTea 2.4.5)
  22. OpenJDK Server VM (build 24.51-b03, mixed mode)
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