Answers for "covert stirng array to int[] java"

0

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);
}
Posted by: Guest on June-02-2021

Code answers related to "Java"

Java Answers by Framework

Browse Popular Code Answers by Language