public char charAt(int index) 返回字符串中第index个字符。
public int length() 返回字符串的长度。
public int indexOf(String str) 返回字符串中出现str的第一个位置
public int indexOf(String str,intfromIndex) 返回字符串中从fromIndex开始出现str的第一个位置
public boolean equalsIgnoreCase(Stringanother) 比较字符串与another是否一样(忽略大小写)
public String replace(char oldChar,charnewChar) 在字符串中用newChar字符替换oldChar字符