I tried to convert it like this, but in what is the error.

int num[] = new int[s.length]; for(int i=0; i<s.length(); i++) { num[i] = (Integer)s.charAt(i+1); } 

    1 answer 1

    Integer. parseInt (String s)

    • Thank! But do not tell me how to write a string to an array of type Object? I tried by analogy, but again failed. - inham130