Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- bash-4.2$ cat smiley.java
- for(int i=0;i<Math.random()*255;i++){System.out.print(":)");}
- bash-4.2$ javac smiley.java
- smiley.java:1: error: class, interface, or enum expected
- for(int i=0;i<Math.random()*255;i++){System.out.print(":)");}
- ^
- smiley.java:1: error: class, interface, or enum expected
- for(int i=0;i<Math.random()*255;i++){System.out.print(":)");}
- ^
- smiley.java:1: error: class, interface, or enum expected
- for(int i=0;i<Math.random()*255;i++){System.out.print(":)");}
- ^
- smiley.java:1: error: class, interface, or enum expected
- for(int i=0;i<Math.random()*255;i++){System.out.print(":)");}
- ^
- 4 errors
- bash-4.2$ java -version
- java version "1.7.0_51"
- OpenJDK Runtime Environment (IcedTea 2.4.5)
- OpenJDK Server VM (build 24.51-b03, mixed mode)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement