标签:
1 String str="asdfghjklzxcvbnmqwertyuiop"; 2 if(str.indexOf("asd")==0); 3 { 4 System.out.println("判断字符串的开头为:"+str.indexOf("asd")); 5 } 6 System.out.println("判断字符串的结尾为:"+str.indexOf("p"));
标签:
原文地址:http://www.cnblogs.com/yg6405816/p/5491419.html