package string;

public class String2Long {
    public static void main(String[] args) {
        String code = "1000001000161060";
        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));
    }
}

@@ -119,13 +119,13 @@
 1000
-16106
+00000
 0%22;%0A

String 2 Long