public static String stringToHexString(String in){
  byte[] ba=in.getBytes();
  return toHexString(ba);
}

public static String stringToHexString ( String in ) { byte [ ] ba = in . getBytes ( ) ; return toHexString ( ba ) ; }
description of the method
