Skip to content

Instantly share code, notes, and snippets.

capitalTerefe capitolkrs

Block or report user

Report or block capitolkrs

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View get strings from bytes
protected static String byteArrayHex(byte [] bytes){
int hn, ln, cx;
String hexDigitChar="0123456789abcdef";
StringBuffer buf=new StringBuffer(bytes.length* 2);
for(cx=0; cx<bytes.length; cx++){
hn=((int)(bytes[cx]) & 0x00ff) /16;
ln=((int)(bytes[cx]) & 0x00ff);
You can’t perform that action at this time.