摘要: 一、字符串操作 创建字符串 String s2 = new String("Hello World"); String s1 = "Hello World"; 1.字符串连接 多个字符串链接时,每个字符串之间用+相连,+就是字符串链接,连接之后生成一个新的字符串。 2.获取字符串长度 a.lengh 阅读全文
posted @ 2016-12-23 18:36 滥好人 阅读(2310) 评论(0) 推荐(0) 编辑