String新用

public class TestString {
	public static void main(String[] args){
	 char data[] = {'a', 'b', 'c'};
     String str = new String(data);//Constructs a new String by decoding the specified 
array of bytes using the platform's default charset.用一个字节数组和字符集来生成spring类
     System.out.println("aa:"+str);
	}
}


你可能感兴趣的:(spring新用,spring(byte[],bytes))