String类

String类创 建的两种方式:

public class  Strings{

   public static  void    mian(String[] args){

        String   str="hello wolrd";

        String  str1=new  String("hello world");

        System.out.println(str+str1);

    }

}

 

posted @ 2018-12-08 17:35  低调做人,踏实做事  阅读(91)  评论(0)    收藏  举报