数组转化为String字符串

array是一个字符数组,转化为String字符串

String newStr = new String(array, 0, size);

String newStr = new String(char数组, 起始下标, 长度);

b[] ={0,1,2,3}

int len =b.length-1;

String    xx = new String(b, 0, len)


xx  =0,1,2,3;

你可能感兴趣的:(数组转化为String字符串)