Wrote /root/JavaX-Caches/tmp_1250897667/main.java - 264 bytes (written=264, should be 264) javac=0, ecj=1 Checking ECJ at port 4898 at 127.0.0.1 ecj -source 1.8 -target 1.8 -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_540277731 /root/JavaX-Caches/tmp_1250897667/main.java [Compilation Error]

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

main$JavaCompileException: ECJ returned errors. ---------- 1. ERROR in /root/JavaX-Caches/tmp_1250897667/main.java (at line 1) static bool isInteger(String s) { ^^^^ Syntax error on token "bool", @ expected ---------- 2. ERROR in /root/JavaX-Caches/tmp_1250897667/main.java (at line 1) static bool isInteger(String s) { ^^^^^^ Syntax error on token(s), misplaced construct(s) ---------- 3. ERROR in /root/JavaX-Caches/tmp_1250897667/main.java (at line 1) static bool isInteger(String s) { ^ Syntax error, insert "RestrictedIdentifierrecord Identifier" to complete RecordHeaderName ---------- 4. ERROR in /root/JavaX-Caches/tmp_1250897667/main.java (at line 1) static bool isInteger(String s) { ^ Syntax error, insert "RecordHeader" to complete RecordHeaderPart ---------- 5. ERROR in /root/JavaX-Caches/tmp_1250897667/main.java (at line 1) static bool isInteger(String s) {\r int n = l(s);\r if (n == 0) ret false;\r int i = 0;\r if (s.charAt(0) == '-')\r if (++i >= n) ret false;\r while (i < n) {\r char c = s.charAt(i);\r if (c < '0' || c > '9') ret false;\r ++i;\r } ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ Syntax error on tokens, delete these tokens ---------- 6. ERROR in /root/JavaX-Caches/tmp_1250897667/main.java (at line 2) int n = l(s); ^ Syntax error on token ";", { expected after this token ---------- 7. ERROR in /root/JavaX-Caches/tmp_1250897667/main.java (at line 3) if (n == 0) ret false; ^^^ Syntax error on token "ret", return expected ---------- 8. ERROR in /root/JavaX-Caches/tmp_1250897667/main.java (at line 6) if (++i >= n) ret false; ^^^ Syntax error on token "ret", return expected ---------- 9. ERROR in /root/JavaX-Caches/tmp_1250897667/main.java (at line 9) if (c < '0' || c > '9') ret false; ^^^ Syntax error on token "ret", return expected ---------- 10. ERROR in /root/JavaX-Caches/tmp_1250897667/main.java (at line 11) } ^ Syntax error, insert "RecordBody" to complete CompilationUnit ---------- 10 problems (10 errors) Options file: /tmp/javax6598585437994094504