'0', '1', '2', '3', '4', '5', '6', '7', '8', '9', 'a', 'b', 'c', 'd', 'e', 'f'
};
+ private Hex() {
+ }
+
public static String toStringCondensed(byte[] bytes) {
StringBuffer buf = new StringBuffer();
- for (int i = 0; i < bytes.length; i++) {
- appendHexChar(buf, bytes[i]);
+ for (final byte aByte : bytes) {
+ appendHexChar(buf, aByte);
}
return buf.toString();
}