Class: Byte2Hex

xiaoxiao2021-03-06  88

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

转载请注明原文地址:https://www.9cbs.com/read-106899.html

New Post(0)