Wrote /root/JavaX-Caches/tmp_396383307/main.java - 2024 bytes (written=2024, should be 2024) javac=0, ecj=1, useJarBot=0 Checking ECJ at port 4898 at 127.0.0.1 /root/jdk-17/bin/javac -source 11 -target 11 -nowarn -encoding utf8 -Xdiags:verbose -cp /root/.javax/x30.jar:/root/dexcompiler/android.jar:/root/dexcompiler/support-v4-22.2.1.jar:/root/javafx/javafx.base.jar:/root/javafx/javafx.graphics.jar:/root/javafx/javafx.swing.jar -d /root/JavaX-Caches/tmp_355924066 /root/JavaX-Caches/tmp_396383307/main.java 2>&1
[Compilation Error]

Compiler errors. Medium transpile. Show Java sources. Show snippet. Edit.

/root/JavaX-Caches/tmp_396383307/main.java:3: error: class, interface, or enum expected static <A> ArrayList<A> asList(A[] a) { ^ /root/JavaX-Caches/tmp_396383307/main.java:5: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_396383307/main.java:9: error: class, interface, or enum expected ArrayList<Integer> l = emptyList(a.length); ^ /root/JavaX-Caches/tmp_396383307/main.java:10: error: class, interface, or enum expected for (int i : a) l.add(i); ^ /root/JavaX-Caches/tmp_396383307/main.java:11: error: class, interface, or enum expected ret l; ^ /root/JavaX-Caches/tmp_396383307/main.java:12: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_396383307/main.java:16: error: class, interface, or enum expected ArrayList<Long> l = emptyList(a.length); ^ /root/JavaX-Caches/tmp_396383307/main.java:17: error: class, interface, or enum expected for (long i : a) l.add(i); ^ /root/JavaX-Caches/tmp_396383307/main.java:18: error: class, interface, or enum expected ret l; ^ /root/JavaX-Caches/tmp_396383307/main.java:19: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_396383307/main.java:23: error: class, interface, or enum expected ArrayList<Float> l = emptyList(a.length); ^ /root/JavaX-Caches/tmp_396383307/main.java:24: error: class, interface, or enum expected for (float i : a) l.add(i); ^ /root/JavaX-Caches/tmp_396383307/main.java:25: error: class, interface, or enum expected ret l; ^ /root/JavaX-Caches/tmp_396383307/main.java:26: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_396383307/main.java:30: error: class, interface, or enum expected ArrayList<Double> l = emptyList(a.length); ^ /root/JavaX-Caches/tmp_396383307/main.java:31: error: class, interface, or enum expected for (double i : a) l.add(i); ^ /root/JavaX-Caches/tmp_396383307/main.java:32: error: class, interface, or enum expected ret l; ^ /root/JavaX-Caches/tmp_396383307/main.java:33: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_396383307/main.java:37: error: class, interface, or enum expected ArrayList<Short> l = emptyList(a.length); ^ /root/JavaX-Caches/tmp_396383307/main.java:38: error: class, interface, or enum expected for (short i : a) l.add(i); ^ /root/JavaX-Caches/tmp_396383307/main.java:39: error: class, interface, or enum expected ret l; ^ /root/JavaX-Caches/tmp_396383307/main.java:40: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_396383307/main.java:44: error: class, interface, or enum expected if (it != null) ^ /root/JavaX-Caches/tmp_396383307/main.java:47: error: class, interface, or enum expected ret l; ^ /root/JavaX-Caches/tmp_396383307/main.java:48: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_396383307/main.java:53: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_396383307/main.java:57: error: class, interface, or enum expected ArrayList l = new ArrayList(); ^ /root/JavaX-Caches/tmp_396383307/main.java:58: error: class, interface, or enum expected if (s != null) ^ /root/JavaX-Caches/tmp_396383307/main.java:61: error: class, interface, or enum expected return l; ^ /root/JavaX-Caches/tmp_396383307/main.java:62: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_396383307/main.java:67: error: class, interface, or enum expected A a; ^ /root/JavaX-Caches/tmp_396383307/main.java:68: error: class, interface, or enum expected if (p != null) while ((a = p.next()) != null) ^ /root/JavaX-Caches/tmp_396383307/main.java:70: error: class, interface, or enum expected ret l; ^ /root/JavaX-Caches/tmp_396383307/main.java:71: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_396383307/main.java:76: error: class, interface, or enum expected if (e != null) ^ /root/JavaX-Caches/tmp_396383307/main.java:79: error: class, interface, or enum expected return l; ^ /root/JavaX-Caches/tmp_396383307/main.java:80: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_396383307/main.java:85: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_396383307/main.java:91: error: class, interface, or enum expected } ^ 39 errors