2016年10月14日

字符串

摘要: String对象不可变,方法调用并不能改变String对象。 正则表达式(regex): 匹配:System.out.println("-1234".matches("-?\\d+")); 分割:split分割后得到字符串数组 替换: print(s.replaceFirst("f\\w+", "l 阅读全文

posted @ 2016-10-14 13:06 cpc2016 阅读(160) 评论(0) 推荐(0) 编辑

导航