Current location - Plastic Surgery and Aesthetics Network - Plastic surgery and medical aesthetics - How to convert a character array into an integer array in android? ask for advice
How to convert a character array into an integer array in android? ask for advice
public class text super { static String arr 2 String(int[]arr){ StringBuilder strb = new StringBuilder(); for(int x:arr)strb . append(x); Returns strb.tostring (); } public static void main (string args []) {int [] I = new int, and define a numeric string String STR = "1289898"; 2. Declare an int array int ia[] = new int[str.length()] according to the length of the string.