question: private static byte [ ] byteArray ( String s ) { int len = s . length ( ) ; byte [ ] result = new byte [ 2 * len ] ; for ( int i = 0 , j = 0 ; i < len ; i ++ ) { char c = s . charAt ( i ) ; result [ j ++ ] = ( byte ) ( c > > 8 ) ; result [ j ++ ] = ( byte ) c ; } return result ; }
target:  Translate a string into a byte array by translating each character into two bytes, high-byte first ("big-endian").