摘要: 1、查找字符串最后一次出现的位置 String str = "my name is zzw"; int lastIndex = str.lastIndexOf("zzw"); if (lastIndex == -1) { System.out.println("zzw 404"); } else { 阅读全文
posted @ 2018-08-21 16:37 蜡笔小嘻 阅读(721) 评论(0) 推荐(0) 编辑