摘要: public class Test { public static void main(String[] args) { String s = "xXccxxxXX"; // 从头开始查找是否存在指定的字符 //结果如下 System.out.println(s.indexOf("c")); //2 阅读全文
posted @ 2017-07-21 15:55 zzdxw 阅读(260) 评论(0) 推荐(0)