char[] aa = {'a','b','c'};
String strAa = new String(aa);

解决方案 »

  1.   

    char []ch={'a','b','c'};
    String str=new String(ch);
      

  2.   

    用String 类的静态方法copyValueOf(char[]data)
    例:
    class  Char2String
    {
    public static void main(String[] args) 
    {
    char[] a = {'a','b','c'};
    String sTest = String.copyValueOf(a);
    System.out.println(sTest);
    }
    }
      

  3.   

    也可以象 luckycat(潘鑫)所说,用String 类的构造方法,直接生成
      

  4.   

    public String(char[] value)
    Allocates a new String so that it represents the sequence of characters currently contained in the character array argument. The contents of the character array are copied; subsequent modification of the character array does not affect the newly created string. Parameters:
    value - the initial value of the string.
      

  5.   

    多谢各位char数组怎么转换成int数组?
      

  6.   

    不用转化了吧,你取char的时候转型一下不就可以了。
      

  7.   

    老大
    不是什么时候char,string型都能转成int型的.
    只有char,string是0,1,2,3,4,5,6,7,8,9或者这些组合的时候才行的
    Integer.parserInt(String.valueOf(Char c));