摘要:
public class Test {public static void main(String[] args) { String s1="how are you"; String s2=new String("ni hao"); //System.out.println(s1.indexOf('h'));//查找Char字符在字符串中的索引 //System.out.println(s1.indexOf("are"));//查找String字符在字符串中的索引 System.out.println(s1.index 阅读全文
posted @ 2014-04-10 10:29
刘扬
阅读(211)
评论(0)
推荐(0)