你说的是ASCII码么?直接转就可以了。
int code = 97; //这里97是字符'a'的ascii码
char ch = (char) code;  //这里字符ch = 'a';

解决方案 »

  1.   

    char[] word2 = new char[word.length];
    for (int i=0;i<word.length;i++)
    {
        word2[i] = (char)word[i];
    }
      

  2.   

    谢谢楼上各位,可能是我没说清楚。请问现有 word[0]=a;word[1]=r,word[3]=e;
    怎么能得到"are"。谢谢,大家继续帮忙呀!
      

  3.   

    String str=""+'a'+'r'+'e';记得给我分哦。呵呵
      

  4.   

    楼上,你的方法好像不行呀,
    我写String str=""+char[0]+char[1];
    提示类型不相符。
      

  5.   

    int word[] = {'a','b','c'};
    for(int i=0; i<word.length; i++) {
    System.out.println(word[i]);
    System.out.println((char)word[i]);
    }

    StringBuffer sb = new StringBuffer();
    for(int i=0; i<word.length; i++) {
    sb.append((char)word[i]);
    }
    System.out.println(sb);
    运行一下这段代码,观察输出,也许对你有些帮助。
    使用STRINGBUFFER不是唯一的方法,不过我处理字符串建议使用。