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

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

/root/JavaX-Caches/tmp_747105947/main.java:1: error: class, interface, or enum expected static final String[] DIGITS = {"one", "two", "three", "four", "five", "six", "seven", "eight", "nine"}; ^ /root/JavaX-Caches/tmp_747105947/main.java:2: error: class, interface, or enum expected static final String[] TENS = {null, "twenty", "thirty", "forty", "fifty", "sixty", "seventy", "eighty", "ninety"}; ^ /root/JavaX-Caches/tmp_747105947/main.java:3: error: class, interface, or enum expected static final String[] TEENS = {"ten", "eleven", "twelve", "thirteen", "fourteen", "fifteen", "sixteen", "seventeen", "eighteen", "nineteen"}; ^ /root/JavaX-Caches/tmp_747105947/main.java:4: error: class, interface, or enum expected static final String[] MAGNITUDES = {"hundred", "thousand", "million", "point"}; ^ /root/JavaX-Caches/tmp_747105947/main.java:5: error: class, interface, or enum expected static final String[] ZERO = {"zero", "oh"}; ^ /root/JavaX-Caches/tmp_747105947/main.java:7: error: class, interface, or enum expected static S parseEnglishNumbers(S input) { ^ /root/JavaX-Caches/tmp_747105947/main.java:9: error: class, interface, or enum expected input = trim(simpleSpaces(lower(input))); ^ /root/JavaX-Caches/tmp_747105947/main.java:10: error: class, interface, or enum expected String result = ""; ^ /root/JavaX-Caches/tmp_747105947/main.java:11: error: class, interface, or enum expected String[] decimal = input.split(MAGNITUDES[3]); ^ /root/JavaX-Caches/tmp_747105947/main.java:12: error: class, interface, or enum expected String[] millions = decimal[0].split(MAGNITUDES[2]); ^ /root/JavaX-Caches/tmp_747105947/main.java:14: error: class, interface, or enum expected for (int i = 0; i < millions.length; i++) { ^ /root/JavaX-Caches/tmp_747105947/main.java:14: error: class, interface, or enum expected for (int i = 0; i < millions.length; i++) { ^ /root/JavaX-Caches/tmp_747105947/main.java:14: error: class, interface, or enum expected for (int i = 0; i < millions.length; i++) { ^ /root/JavaX-Caches/tmp_747105947/main.java:17: error: class, interface, or enum expected for (int j = 0; j < thousands.length; j++) { ^ /root/JavaX-Caches/tmp_747105947/main.java:17: error: class, interface, or enum expected for (int j = 0; j < thousands.length; j++) { ^ /root/JavaX-Caches/tmp_747105947/main.java:17: error: class, interface, or enum expected for (int j = 0; j < thousands.length; j++) { ^ /root/JavaX-Caches/tmp_747105947/main.java:19: error: class, interface, or enum expected StringTokenizer set = new StringTokenizer(thousands[j]); ^ /root/JavaX-Caches/tmp_747105947/main.java:21: error: class, interface, or enum expected if (set.countTokens() == 1) { //If there is only one token given in triplet ^ /root/JavaX-Caches/tmp_747105947/main.java:23: error: class, interface, or enum expected triplet[0] = 0; ^ /root/JavaX-Caches/tmp_747105947/main.java:24: error: class, interface, or enum expected for (int k = 0; k < DIGITS.length; k++) { ^ /root/JavaX-Caches/tmp_747105947/main.java:24: error: class, interface, or enum expected for (int k = 0; k < DIGITS.length; k++) { ^ /root/JavaX-Caches/tmp_747105947/main.java:24: error: class, interface, or enum expected for (int k = 0; k < DIGITS.length; k++) { ^ /root/JavaX-Caches/tmp_747105947/main.java:27: error: class, interface, or enum expected triplet[2] = k + 1; ^ /root/JavaX-Caches/tmp_747105947/main.java:28: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_747105947/main.java:31: error: class, interface, or enum expected triplet[2] = 0; ^ /root/JavaX-Caches/tmp_747105947/main.java:32: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_747105947/main.java:34: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_747105947/main.java:40: error: class, interface, or enum expected String dos = set.nextToken(); ^ /root/JavaX-Caches/tmp_747105947/main.java:41: error: class, interface, or enum expected if (dos.equals(MAGNITUDES[0])) { //If one of the two tokens is "hundred" ^ /root/JavaX-Caches/tmp_747105947/main.java:42: error: class, interface, or enum expected for (int k = 0; k < DIGITS.length; k++) { ^ /root/JavaX-Caches/tmp_747105947/main.java:42: error: class, interface, or enum expected for (int k = 0; k < DIGITS.length; k++) { ^ /root/JavaX-Caches/tmp_747105947/main.java:45: error: class, interface, or enum expected triplet[1] = 0; ^ /root/JavaX-Caches/tmp_747105947/main.java:46: error: class, interface, or enum expected triplet[2] = 0; ^ /root/JavaX-Caches/tmp_747105947/main.java:47: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_747105947/main.java:52: error: class, interface, or enum expected for (int k = 0; k < DIGITS.length; k++) { ^ /root/JavaX-Caches/tmp_747105947/main.java:52: error: class, interface, or enum expected for (int k = 0; k < DIGITS.length; k++) { ^ /root/JavaX-Caches/tmp_747105947/main.java:52: error: class, interface, or enum expected for (int k = 0; k < DIGITS.length; k++) { ^ /root/JavaX-Caches/tmp_747105947/main.java:55: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_747105947/main.java:58: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_747105947/main.java:65: error: class, interface, or enum expected String dos = set.nextToken(); ^ /root/JavaX-Caches/tmp_747105947/main.java:66: error: class, interface, or enum expected String tres = set.nextToken(); ^ /root/JavaX-Caches/tmp_747105947/main.java:67: error: class, interface, or enum expected for (int k = 0; k < DIGITS.length; k++) { ^ /root/JavaX-Caches/tmp_747105947/main.java:67: error: class, interface, or enum expected for (int k = 0; k < DIGITS.length; k++) { ^ /root/JavaX-Caches/tmp_747105947/main.java:67: error: class, interface, or enum expected for (int k = 0; k < DIGITS.length; k++) { ^ /root/JavaX-Caches/tmp_747105947/main.java:70: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_747105947/main.java:73: error: class, interface, or enum expected triplet[2] = k + 1; ^ /root/JavaX-Caches/tmp_747105947/main.java:74: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_747105947/main.java:77: error: class, interface, or enum expected triplet[2] = 0; ^ /root/JavaX-Caches/tmp_747105947/main.java:78: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_747105947/main.java:84: error: class, interface, or enum expected String dos = set.nextToken(); ^ /root/JavaX-Caches/tmp_747105947/main.java:85: error: class, interface, or enum expected String tres = set.nextToken(); ^ /root/JavaX-Caches/tmp_747105947/main.java:86: error: class, interface, or enum expected String cuatro = set.nextToken(); ^ /root/JavaX-Caches/tmp_747105947/main.java:87: error: class, interface, or enum expected for (int k = 0; k < DIGITS.length; k++) { ^ /root/JavaX-Caches/tmp_747105947/main.java:87: error: class, interface, or enum expected for (int k = 0; k < DIGITS.length; k++) { ^ /root/JavaX-Caches/tmp_747105947/main.java:87: error: class, interface, or enum expected for (int k = 0; k < DIGITS.length; k++) { ^ /root/JavaX-Caches/tmp_747105947/main.java:90: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_747105947/main.java:93: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_747105947/main.java:96: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_747105947/main.java:101: error: class, interface, or enum expected triplet[1] = 0; ^ /root/JavaX-Caches/tmp_747105947/main.java:102: error: class, interface, or enum expected triplet[2] = 0; ^ /root/JavaX-Caches/tmp_747105947/main.java:103: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_747105947/main.java:106: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_747105947/main.java:111: error: class, interface, or enum expected result = result + "."; ^ /root/JavaX-Caches/tmp_747105947/main.java:112: error: class, interface, or enum expected System.out.println(decimalDigits.countTokens() + " decimal digits"); ^ /root/JavaX-Caches/tmp_747105947/main.java:113: error: class, interface, or enum expected while (decimalDigits.hasMoreTokens()) { ^ /root/JavaX-Caches/tmp_747105947/main.java:115: error: class, interface, or enum expected System.out.println(w); ^ /root/JavaX-Caches/tmp_747105947/main.java:117: error: class, interface, or enum expected if (w.equals(ZERO[0]) || w.equals(ZERO[1])) { ^ /root/JavaX-Caches/tmp_747105947/main.java:119: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_747105947/main.java:120: error: class, interface, or enum expected for (int j = 0; j < DIGITS.length; j++) { ^ /root/JavaX-Caches/tmp_747105947/main.java:120: error: class, interface, or enum expected for (int j = 0; j < DIGITS.length; j++) { ^ /root/JavaX-Caches/tmp_747105947/main.java:123: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_747105947/main.java:130: error: class, interface, or enum expected ret result; ^ /root/JavaX-Caches/tmp_747105947/main.java:131: error: class, interface, or enum expected } ^ 73 errors