Here you can find the source of convertCharArrayToIntArray(char[] chars)
private static int[] convertCharArrayToIntArray(char[] chars)
//package com.java2s; //License from project: Apache License public class Main { private static int[] convertCharArrayToIntArray(char[] chars) { int[] nums = new int[chars.length]; try {//from w w w . j a v a2s .co m for (int i = 0; i < chars.length; i++) { nums[i] = Integer.parseInt(String.valueOf(chars[i])); } } catch (NumberFormatException e) { e.printStackTrace(); } return nums; } }