goja-core/src/main/java/goja/core/kits/IdCardKit.java
public static int[] converCharToInt(char[] ca) {
        int len = ca.length;
        int[] iArr = new int[len];
        try {
            for (int i = 0; i < len; i++) {
                iArr[i] = Integer.parseInt(String.valueOf(ca[i]));
            }
        } catch (NumberFormatException e) {
            e.printStackTrace();
        }
        return iArr;
    }
public static int[] converCharToInt(char[] ca) {
        int len = ca.length;
        int[] iArr = new int[len];
        try {
            for (int i = 0; i < len; i++) {
                iArr[i] = Integer.parseInt(String.valueOf(ca[i]));
            }
        } catch (NumberFormatException e) {
            e.printStackTrace();
        }
        return iArr;
    }
public static int [ ] converCharToInt ( char [ ] ca ) { int len = ca . length ; int [ ] iArr = new int [ len ] ; try { for ( int i = 0 ; i < len ; i ++ ) { iArr [ i ] = Integer . parseInt ( String . valueOf ( ca [ i ] ) ) ; } } catch ( NumberFormatException e ) { e . printStackTrace ( ) ; } return iArr ; }
将字符数组转换成数字数组

@param ca 字符数组
@return 数字数组
将字符数组转换成数字数组