×

Welcome to TagMyCode

Please login or create account to add a snippet.
0
0
 
0
Language: Java
Posted by: Stefan Wendelmann
Added: Aug 23, 2018 12:46 PM
Views: 3298
Tags: no tags
  1. byte[] byteAr = line.getBytes();
  2. String helloHex = DatatypeConverter.printHexBinary(byteAr);
  3. System.out.printf("Hello hex: 0x%s\n", helloHex);