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

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

/root/JavaX-Caches/tmp_748092454/main.java:36: error: class, interface, or enum expected sclass AlphanumComparator implements Comparator<S> { ^ /root/JavaX-Caches/tmp_748092454/main.java:39: error: class, interface, or enum expected private final boolean isDigit(char ch) { ^ /root/JavaX-Caches/tmp_748092454/main.java:41: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_748092454/main.java:44: error: class, interface, or enum expected private final String getChunk(String s, int slength, int marker) { ^ /root/JavaX-Caches/tmp_748092454/main.java:46: error: class, interface, or enum expected char c = s.charAt(marker); ^ /root/JavaX-Caches/tmp_748092454/main.java:47: error: class, interface, or enum expected chunk.append(c); ^ /root/JavaX-Caches/tmp_748092454/main.java:48: error: class, interface, or enum expected marker++; ^ /root/JavaX-Caches/tmp_748092454/main.java:49: error: class, interface, or enum expected if (isDigit(c)) ^ /root/JavaX-Caches/tmp_748092454/main.java:52: error: class, interface, or enum expected if (!isDigit(c)) ^ /root/JavaX-Caches/tmp_748092454/main.java:54: error: class, interface, or enum expected chunk.append(c); ^ /root/JavaX-Caches/tmp_748092454/main.java:55: error: class, interface, or enum expected marker++; ^ /root/JavaX-Caches/tmp_748092454/main.java:56: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_748092454/main.java:60: error: class, interface, or enum expected if (isDigit(c)) ^ /root/JavaX-Caches/tmp_748092454/main.java:62: error: class, interface, or enum expected chunk.append(c); ^ /root/JavaX-Caches/tmp_748092454/main.java:63: error: class, interface, or enum expected marker++; ^ /root/JavaX-Caches/tmp_748092454/main.java:64: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_748092454/main.java:66: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_748092454/main.java:68: error: class, interface, or enum expected public int compare(String s1, String s2) { ^ /root/JavaX-Caches/tmp_748092454/main.java:70: error: class, interface, or enum expected if (s2 == null) ret 1; ^ /root/JavaX-Caches/tmp_748092454/main.java:72: error: class, interface, or enum expected int thisMarker = 0; ^ /root/JavaX-Caches/tmp_748092454/main.java:73: error: class, interface, or enum expected int thatMarker = 0; ^ /root/JavaX-Caches/tmp_748092454/main.java:74: error: class, interface, or enum expected int s1Length = s1.length(); ^ /root/JavaX-Caches/tmp_748092454/main.java:75: error: class, interface, or enum expected int s2Length = s2.length(); ^ /root/JavaX-Caches/tmp_748092454/main.java:77: error: class, interface, or enum expected while (thisMarker < s1Length && thatMarker < s2Length) { ^ /root/JavaX-Caches/tmp_748092454/main.java:79: error: class, interface, or enum expected thisMarker += thisChunk.length(); ^ /root/JavaX-Caches/tmp_748092454/main.java:81: error: class, interface, or enum expected String thatChunk = getChunk(s2, s2Length, thatMarker); ^ /root/JavaX-Caches/tmp_748092454/main.java:82: error: class, interface, or enum expected thatMarker += thatChunk.length(); ^ /root/JavaX-Caches/tmp_748092454/main.java:85: error: class, interface, or enum expected int result = 0; ^ /root/JavaX-Caches/tmp_748092454/main.java:86: error: class, interface, or enum expected if (isDigit(thisChunk.charAt(0)) && isDigit(thatChunk.charAt(0))) ^ /root/JavaX-Caches/tmp_748092454/main.java:90: error: class, interface, or enum expected result = thisChunkLength - thatChunk.length(); ^ /root/JavaX-Caches/tmp_748092454/main.java:92: error: class, interface, or enum expected if (result == 0) ^ /root/JavaX-Caches/tmp_748092454/main.java:94: error: class, interface, or enum expected for (int i = 0; i < thisChunkLength; i++) ^ /root/JavaX-Caches/tmp_748092454/main.java:94: error: class, interface, or enum expected for (int i = 0; i < thisChunkLength; i++) ^ /root/JavaX-Caches/tmp_748092454/main.java:97: error: class, interface, or enum expected if (result != 0) ^ /root/JavaX-Caches/tmp_748092454/main.java:100: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_748092454/main.java:107: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_748092454/main.java:111: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_748092454/main.java:114: error: class, interface, or enum expected } ^ 38 errors