fork(10) download
  1. 1.class box {
  2. 2.int width;
  3. 3.int height;
  4. 4.int length;
  5. 5.}
  6. 6.class mainclass {
  7. 7.public static void main(String args[])
  8. 8.{
  9. 9.box obj = new box();
  10. 10.System.out.println(obj);
  11. 15.}
  12. 16.}
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
Main.java:1: error: class, interface, or enum expected
1.class box {
^
Main.java:2: error: illegal start of type
2.int width;
^
Main.java:2: error: ';' expected
2.int width;
  ^
Main.java:2: error: <identifier> expected
2.int width;
           ^
Main.java:3: error: illegal start of type
3.int height;
^
Main.java:3: error: ';' expected
3.int height;
  ^
Main.java:3: error: <identifier> expected
3.int height;
            ^
Main.java:4: error: illegal start of type
4.int length;
^
Main.java:4: error: ';' expected
4.int length;
  ^
Main.java:4: error: <identifier> expected
4.int length;
            ^
Main.java:5: error: illegal start of type
5.} 
^
Main.java:5: error: ';' expected
5.} 
  ^
Main.java:6: error: illegal start of type
6.class mainclass {
^
Main.java:6: error: <identifier> expected
6.class mainclass {
  ^
Main.java:6: error: ';' expected
6.class mainclass {
       ^
Main.java:7: error: not a statement
7.public static void main(String args[]) 
^
Main.java:7: error: ';' expected
7.public static void main(String args[]) 
  ^
Main.java:7: error: ';' expected
7.public static void main(String args[]) 
        ^
Main.java:7: error: illegal start of expression
7.public static void main(String args[]) 
                ^
Main.java:7: error: ';' expected
7.public static void main(String args[]) 
                         ^
Main.java:7: error: ';' expected
7.public static void main(String args[]) 
                                       ^
Main.java:9: error: not a statement
9.box obj = new box();
^
Main.java:9: error: ';' expected
9.box obj = new box();
  ^
Main.java:10: error: not a statement
10.System.out.println(obj);
^
Main.java:10: error: ';' expected
10.System.out.println(obj);
   ^
Main.java:11: error: not a statement
15.} 
^
Main.java:11: error: ';' expected
15.} 
   ^
Main.java:12: error: not a statement
16.}
^
Main.java:12: error: ';' expected
16.}
   ^
Main.java:12: error: reached end of file while parsing
16.}
    ^
30 errors
stdout
Standard output is empty