public static String hexAll ( String s ) { StringBuilder result = new StringBuilder ( ) ; for ( int i = 0 ; i < s . length ( ) ; i ++ ) { result . append ( Integer . toHexString ( s . charAt ( i ) ) . toUpperCase ( ) ) . append ( ' ' ) ; } return ( result . toString ( ) ) ; }
Returns the chars of a String in hex