fork download
  1. public class Main {
  2. public static void main(String[] args) {
  3. int[] numbers = {1, 2, 3};
  4. int length = numbers[3];
  5. char[] chars = new char[length];
  6. chars[numbers.length + 4] = 'y';
  7. System.out.println("Done!");
  8. }
  9. }
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.nim(1, 6) Error: undeclared identifier: 'public'
stdout
Standard output is empty