import java.util.*;
public class test 
{
    public static void main(String[] args)
    {
        int i = 123;
        String s = Integer.toString(i);
        int Test = Integer.parseInt(s, s.charAt(0));    // ERROR!
    }
}
I want to parse the input string based on char position to get the positional integer.
Error message:
Exception in thread "main" java.lang.NumberFormatException: radix 49 greater than Character.MAX_RADIX
    at java.lang.Integer.parseInt(Unknown Source)
    at test.main(test.java:11)
 
     
     
     
     
    