Wrote /root/JavaX-Caches/tmp_611014723/main.java - 2326 bytes (written=2326, should be 2326) 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_1191455376 /root/JavaX-Caches/tmp_611014723/main.java 2>&1
[Compilation Error]

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

/root/JavaX-Caches/tmp_611014723/main.java:3: error: class, interface, or enum expected static <A> ArrayList<A> asList(A[] a) { ^ /root/JavaX-Caches/tmp_611014723/main.java:5: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_611014723/main.java:9: error: class, interface, or enum expected ArrayList<Char> l = emptyList(a.length); ^ /root/JavaX-Caches/tmp_611014723/main.java:10: error: class, interface, or enum expected for (i : a) l.add(i); ^ /root/JavaX-Caches/tmp_611014723/main.java:11: error: class, interface, or enum expected ret l; ^ /root/JavaX-Caches/tmp_611014723/main.java:12: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_611014723/main.java:16: error: class, interface, or enum expected ArrayList<Byte> l = emptyList(a.length); ^ /root/JavaX-Caches/tmp_611014723/main.java:17: error: class, interface, or enum expected for (i : a) l.add(i); ^ /root/JavaX-Caches/tmp_611014723/main.java:18: error: class, interface, or enum expected ret l; ^ /root/JavaX-Caches/tmp_611014723/main.java:19: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_611014723/main.java:23: error: class, interface, or enum expected ArrayList<Integer> l = emptyList(a.length); ^ /root/JavaX-Caches/tmp_611014723/main.java:24: error: class, interface, or enum expected for (int i : a) l.add(i); ^ /root/JavaX-Caches/tmp_611014723/main.java:25: error: class, interface, or enum expected ret l; ^ /root/JavaX-Caches/tmp_611014723/main.java:26: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_611014723/main.java:30: error: class, interface, or enum expected ArrayList<Long> l = emptyList(a.length); ^ /root/JavaX-Caches/tmp_611014723/main.java:31: error: class, interface, or enum expected for (long i : a) l.add(i); ^ /root/JavaX-Caches/tmp_611014723/main.java:32: error: class, interface, or enum expected ret l; ^ /root/JavaX-Caches/tmp_611014723/main.java:33: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_611014723/main.java:37: error: class, interface, or enum expected ArrayList<Float> l = emptyList(a.length); ^ /root/JavaX-Caches/tmp_611014723/main.java:38: error: class, interface, or enum expected for (float i : a) l.add(i); ^ /root/JavaX-Caches/tmp_611014723/main.java:39: error: class, interface, or enum expected ret l; ^ /root/JavaX-Caches/tmp_611014723/main.java:40: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_611014723/main.java:44: error: class, interface, or enum expected ArrayList<Double> l = emptyList(a.length); ^ /root/JavaX-Caches/tmp_611014723/main.java:45: error: class, interface, or enum expected for (double i : a) l.add(i); ^ /root/JavaX-Caches/tmp_611014723/main.java:46: error: class, interface, or enum expected ret l; ^ /root/JavaX-Caches/tmp_611014723/main.java:47: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_611014723/main.java:51: error: class, interface, or enum expected ArrayList<Short> l = emptyList(a.length); ^ /root/JavaX-Caches/tmp_611014723/main.java:52: error: class, interface, or enum expected for (short i : a) l.add(i); ^ /root/JavaX-Caches/tmp_611014723/main.java:53: error: class, interface, or enum expected ret l; ^ /root/JavaX-Caches/tmp_611014723/main.java:54: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_611014723/main.java:58: error: class, interface, or enum expected if (it != null) ^ /root/JavaX-Caches/tmp_611014723/main.java:61: error: class, interface, or enum expected ret l; ^ /root/JavaX-Caches/tmp_611014723/main.java:62: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_611014723/main.java:67: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_611014723/main.java:71: error: class, interface, or enum expected ArrayList l = new ArrayList(); ^ /root/JavaX-Caches/tmp_611014723/main.java:72: error: class, interface, or enum expected if (s != null) ^ /root/JavaX-Caches/tmp_611014723/main.java:75: error: class, interface, or enum expected return l; ^ /root/JavaX-Caches/tmp_611014723/main.java:76: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_611014723/main.java:81: error: class, interface, or enum expected A a; ^ /root/JavaX-Caches/tmp_611014723/main.java:82: error: class, interface, or enum expected if (p != null) while ((a = p.next()) != null) ^ /root/JavaX-Caches/tmp_611014723/main.java:84: error: class, interface, or enum expected ret l; ^ /root/JavaX-Caches/tmp_611014723/main.java:85: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_611014723/main.java:90: error: class, interface, or enum expected if (e != null) ^ /root/JavaX-Caches/tmp_611014723/main.java:93: error: class, interface, or enum expected return l; ^ /root/JavaX-Caches/tmp_611014723/main.java:94: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_611014723/main.java:99: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_611014723/main.java:105: error: class, interface, or enum expected } ^ 47 errors