question: public static String byteArrayToString ( byte [ ] bytes ) { char chars [ ] = new char [ bytes . length ] ; for ( int i = 0 ; i < bytes . length ; i ++ ) { chars [ i ] = ( char ) bytes [ i ] ; } return new String ( chars ) ; }
target:  Converts byte array to String.