1805
									No
								
		    				
| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | publicstaticvoidmain(String[] args) {    System.out.println("Bytes to Hex: "+ convertBytesToHex());}privatestaticString convertBytesToHex() {    byte[] bytes = newbyte[3];    newRandom().nextBytes(bytes);             StringBuilder result = newStringBuilder();    for(bytetemp : bytes) {        result.append(String.format("%02x", temp));    }    returnresult.toString();} | 
 
									













 
댓글 ( 4)  
댓글 남기기