public static byte[] toSimpleByteArray(char[] carr) {
        byte[] barr = new byte[carr.length];
        for (int i = 0; i < carr.length; i++) {
            barr[i] = (byte) carr[i];
        }
        return barr;
    }
public static byte[] toSimpleByteArray(char[] carr) {
        byte[] barr = new byte[carr.length];
        for (int i = 0; i < carr.length; i++) {
            barr[i] = (byte) carr[i];
        }
        return barr;
    }
public static byte [ ] toSimpleByteArray ( char [ ] carr ) { byte [ ] barr = new byte [ carr . length ] ; for ( int i = 0 ; i < carr . length ; i ++ ) { barr [ i ] = ( byte ) carr [ i ] ; } return barr ; }
Converts char array into byte array by stripping the high byte of each character.
Converts char array into byte array by stripping the high byte of each character .