class Simple { public static void main(String args[]) { //this is start String str = "1944593030303030ff0000148b010600"; int length = str.length(); int i = length / 2; int i2 = 0; String substring = str.substring(0, i); str = str.substring(i, length); String replaceAll = substring.replaceAll("[^\\d.]", ""); str = str.replaceAll("[^\\d.]", ""); long parseLong = Long.parseLong(replaceAll); long parseLong2 = Long.parseLong(str); str = new StringBuilder(); str.append(((parseLong + parseLong2) + ((long) length)) / 2); str.append(""); str = str.toString(); //error begin from here length = str.length(); if (length > 8) { i2 = length - 8; } replaceAll = "QW5RE45ReVvcx40gfG8BGHTkKLlRr"; while (i2 < length) { int i3 = i2 + 1; i2 = Integer.parseInt(str.substring(i2, i3)); StringBuilder stringBuilder = new StringBuilder(); stringBuilder.append(str2); stringBuilder.append(replaceAll.substring(i2, i2 + 1)); str2 = stringBuilder.toString(); stringBuilder = new StringBuilder(); stringBuilder.append(str2); i2 *= 2; stringBuilder.append(replaceAll.substring(i2, i2 + 1)); str2 = stringBuilder.toString(); i2 = i3; } return str2; System.out.println("sucess"); //this is end } }
Output
Compile by: javac Simple.java
52.105/Simple.java:19: error: ';' expected
str = new StringBuilder("") ^
1 error