Package pak1;
Public class byte2hex {public static void main (string [] args) {for (int i = 0; i <256; i ) {string s = integer.tohexstring (i & 0xff) .touppercase (); if (S.LENGTH () == 1) {s = "0" S;} if (i% 8 == 0) {system.out.println ();} system.out.print (i "= 0x" s. Charat (0) " S.Charat (1) " ");}}} -------------------------- OR : package pak1;
Public class byte2hex {public static void main (String [] args) {
Byte [] bt = new byte [256]; for (int i = 0; i