摘要: Java代码 startsWith: if(a.startsWith(b)) //判断字符串a 是不是以字符串b开头. endsWith: if(a.endsWith(b)) //判断字符串a 是不是以字符串b结尾. JAVA例子 1. public class StringDemo{ 输出结果:t 阅读全文
posted @ 2017-04-08 09:41 彼岸辰星 阅读(1253) 评论(0) 推荐(0) 编辑