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

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

/root/JavaX-Caches/tmp_358263531/main.java:1: error: class, interface, or enum expected static byte[] base64decode(String s) { ^ /root/JavaX-Caches/tmp_358263531/main.java:3: error: class, interface, or enum expected int sLen = s.length(); ^ /root/JavaX-Caches/tmp_358263531/main.java:4: error: class, interface, or enum expected int numGroups = sLen/4; ^ /root/JavaX-Caches/tmp_358263531/main.java:5: error: class, interface, or enum expected if (4*numGroups != sLen) ^ /root/JavaX-Caches/tmp_358263531/main.java:8: error: class, interface, or enum expected int missingBytesInLastGroup = 0; ^ /root/JavaX-Caches/tmp_358263531/main.java:9: error: class, interface, or enum expected int numFullGroups = numGroups; ^ /root/JavaX-Caches/tmp_358263531/main.java:10: error: class, interface, or enum expected if (sLen != 0) { ^ /root/JavaX-Caches/tmp_358263531/main.java:13: error: class, interface, or enum expected numFullGroups--; ^ /root/JavaX-Caches/tmp_358263531/main.java:14: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_358263531/main.java:17: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_358263531/main.java:21: error: class, interface, or enum expected int inCursor = 0, outCursor = 0; ^ /root/JavaX-Caches/tmp_358263531/main.java:22: error: class, interface, or enum expected for (int i=0; i<numFullGroups; i++) { ^ /root/JavaX-Caches/tmp_358263531/main.java:22: error: class, interface, or enum expected for (int i=0; i<numFullGroups; i++) { ^ /root/JavaX-Caches/tmp_358263531/main.java:22: error: class, interface, or enum expected for (int i=0; i<numFullGroups; i++) { ^ /root/JavaX-Caches/tmp_358263531/main.java:24: error: class, interface, or enum expected int ch1 = base64decode_base64toint(s.charAt(inCursor++), alphaToInt); ^ /root/JavaX-Caches/tmp_358263531/main.java:25: error: class, interface, or enum expected int ch2 = base64decode_base64toint(s.charAt(inCursor++), alphaToInt); ^ /root/JavaX-Caches/tmp_358263531/main.java:26: error: class, interface, or enum expected int ch3 = base64decode_base64toint(s.charAt(inCursor++), alphaToInt); ^ /root/JavaX-Caches/tmp_358263531/main.java:27: error: class, interface, or enum expected result[outCursor++] = (byte) ((ch0 << 2) | (ch1 >> 4)); ^ /root/JavaX-Caches/tmp_358263531/main.java:28: error: class, interface, or enum expected result[outCursor++] = (byte) ((ch1 << 4) | (ch2 >> 2)); ^ /root/JavaX-Caches/tmp_358263531/main.java:29: error: class, interface, or enum expected result[outCursor++] = (byte) ((ch2 << 6) | ch3); ^ /root/JavaX-Caches/tmp_358263531/main.java:30: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_358263531/main.java:35: error: class, interface, or enum expected int ch1 = base64decode_base64toint(s.charAt(inCursor++), alphaToInt); ^ /root/JavaX-Caches/tmp_358263531/main.java:36: error: class, interface, or enum expected result[outCursor++] = (byte) ((ch0 << 2) | (ch1 >> 4)); ^ /root/JavaX-Caches/tmp_358263531/main.java:38: error: class, interface, or enum expected if (missingBytesInLastGroup == 1) { ^ /root/JavaX-Caches/tmp_358263531/main.java:40: error: class, interface, or enum expected result[outCursor++] = (byte) ((ch1 << 4) | (ch2 >> 2)); ^ /root/JavaX-Caches/tmp_358263531/main.java:41: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_358263531/main.java:46: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_358263531/main.java:50: error: class, interface, or enum expected if (result < 0) ^ /root/JavaX-Caches/tmp_358263531/main.java:52: error: class, interface, or enum expected return result; ^ /root/JavaX-Caches/tmp_358263531/main.java:53: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_358263531/main.java:55: error: class, interface, or enum expected static final byte base64decode_base64toint[] = { ^ 31 errors