16进制字符转字符串

阅读更多
public static void main(String[] args) {
String a = "移动";//移动
String [] b = a.split("&#");
int i = 0;
for (String str : b) {
if (!"".equals(b[i++])) {
b[i-1] = str.replace(";", "");
char c= (char)Integer.valueOf(Integer.toString(new Integer(b[i-1]),   16),16).intValue();
System.out.println(c);
}
}
}

你可能感兴趣的:(16进制,java,转,字符串)