Here you can find the source of charToInt(char[] values)
public static int[] charToInt(char[] values)
//package com.java2s; public class Main { public static int[] charToInt(char[] values) { if (values == null) { return null; }// www . j a va 2 s . com int[] results = new int[values.length]; for (int i = 0; i < values.length; i++) { results[i] = values[i]; } return results; } }