| Code with Finding: |
class Hex {
/**
* Converts a byte array to capitalized hexadecimal text.
* The length of the resulting string will be twice the length of
* <code>text</code> and will only contain the characters '0', '1',
* '2', '3', '4', '5', '6', '7', '8', '9', 'A', 'B', 'C', 'D', 'E', 'F'.
*
* @param text The byte array to convert.
*
* @return capitalized hexadecimal text representation of
* <code>text</code>.
*/
public static String bytesToHexString(byte[] text) {
return bytesToHexString(text,0,text.length);
}
}
|