fork download
  1. class Test {
  2. public static void main(String[] args) {
  3. class Foo {}
  4. Foo foos = new Foo[12];
  5. }
  6. }
  7.  
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
Main.java:4: error: incompatible types
        Foo foos = new Foo[12];
                   ^
  required: Foo
  found:    Foo[]
1 error
stdout
Standard output is empty