摘要: 阅读全文
posted @ 2017-01-08 13:21 894316728 阅读(119) 评论(0) 推荐(0)
摘要: 1.直接赋值:string str= “hello”; 2.new(因为堆里面开辟了两块内存空间所以不常用):string str = new string(); 3.str内容不可更改 例:string str1 = “hello”; system.out.println(str1 + “worl 阅读全文
posted @ 2017-01-08 13:13 894316728 阅读(182) 评论(0) 推荐(0)