Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

string to int array

String s = "1234";
int[] intArray = new int[s.length()];

for (int i = 0; i < s.length(); i++) {
	intArray[i] = Character.digit(s.charAt(i), 10);
}

Source by www.sitepoint.com #
 
PREVIOUS NEXT
Tagged: #string #int #array
ADD COMMENT
Topic
Name
6+4 =