java_String

#String:

  字符串类,final类

  任何的字符串的字面值,如“abc”都是String类的一个实例对象,String s = “abc”;

  构造方法:

      new String();

      new String(String str);

      new String(StringBuffer ss);

      new String(byte[] by);

      new String(byte[] by,int index,int length);

      new String(char[] ch);  

      new String(char[] ch,int index,int length);

posted on 2018-10-23 20:58  kelay  阅读(92)  评论(0)    收藏  举报

导航