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

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

/root/JavaX-Caches/tmp_1214654123/main.java:1: error: class, interface, or enum expected static long[] linux_cpuLoad_parse() { ^ /root/JavaX-Caches/tmp_1214654123/main.java:3: error: class, interface, or enum expected S[] CPU = line.split("\\s+"); ^ /root/JavaX-Caches/tmp_1214654123/main.java:4: error: class, interface, or enum expected long IDLE = parseLong(CPU[4]); //Get the idle CPU time. ^ /root/JavaX-Caches/tmp_1214654123/main.java:5: error: class, interface, or enum expected long TOTAL = parseLong(CPU[1]) + parseLong(CPU[2]) + parseLong(CPU[3]) + parseLong(CPU[4]); ^ /root/JavaX-Caches/tmp_1214654123/main.java:6: error: class, interface, or enum expected ret new long[] { IDLE, TOTAL }; ^ /root/JavaX-Caches/tmp_1214654123/main.java:7: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_1214654123/main.java:11: error: class, interface, or enum expected sleepSeconds(1); ^ /root/JavaX-Caches/tmp_1214654123/main.java:12: error: class, interface, or enum expected long[] b = linux_cpuLoad_parse(); ^ /root/JavaX-Caches/tmp_1214654123/main.java:13: error: class, interface, or enum expected long DIFF_IDLE = b[0] - a[0]; ^ /root/JavaX-Caches/tmp_1214654123/main.java:14: error: class, interface, or enum expected long DIFF_TOTAL = b[1] - a[1]; ^ /root/JavaX-Caches/tmp_1214654123/main.java:15: error: class, interface, or enum expected float DIFF_USAGE = DIFF_TOTAL == 0 ? 0 : 100f * (DIFF_TOTAL - DIFF_IDLE) / DIFF_TOTAL; ^ /root/JavaX-Caches/tmp_1214654123/main.java:16: error: class, interface, or enum expected ret DIFF_USAGE; ^ /root/JavaX-Caches/tmp_1214654123/main.java:17: error: class, interface, or enum expected } ^ 13 errors