package string;

public class String2Long {
    public static void main(String[] args) {
        String code = "1000001000000000";
        System.out.println(code.replaceFirst("1", "0"));
        System.out.println(code.replaceFirst("0", ""));
        String number = code.replaceFirst("1", "0");
        System.out.println(Long.parseLong(number));
    }
}

@@ -341,16 +341,271 @@
 umber));
+%0A%0A        String max_code = %22100000000000000000%22;%0A        String min_code = %22123456%22;%0A%0A        String md = max_code.substring(0, max_code.length() - min_code.length()).concat(min_code);%0A        System.out.println(max_code);%0A        System.out.println(md);
 %0A    %7D%0A%7D

String 2 Long