±Û¾´ÀÌ :±èÇÊÈ£ 2000³â 6¿ù 20ÀÏ 15:20:02
In Reply to: ASCII ÄÚµå º¯È¯ÇÏ´Â ¹æ¹ýÁ» °¡¸£ÃÄ ÁÖ¼¼¿ä posted by À¯ºñ on 2000³â 6¿ù 20ÀÏ 13:46:06:
/**
 * #(#) BytesToString.java
 *
 *
 * @date    2000/06/20
 * @author  Kim, Pilho [phkim@cluecom.co.kr]
 */
public class BytesToString {
    public static void main(String[] args) {
         byte[] b = { 48, 49, 50 , 51 };
         System.out.println( new String(b) );
         String s = "31";
         System.out.println( "" + Integer.parseInt(s, 16) );
         System.out.println( "" + (char) Integer.parseInt(s, 16) );
    }
}