2016년 7월 12일 화요일

[JaVa] byte[] -> String

byte[] mgs; // 어떤 값이 들어 있다 치고...

try {
     System.out.println(new String(mgs, "UTF-8"));
} catch (UnsupportedEncodingException e) {
     e.printStackTrace();
}

댓글 없음 :

댓글 쓰기