?????????????????????????
????1????????????????????? String s="hello!";
????2????ù???????????????? String();//????????????????????????
????String(value);//???????????????????????????μ????
????String (char[] value);//?????????????鴴??????????
????String(char[] value??int offset??int count);//??????????offset??count????????????????
????String(StringBuffer buffer);//????StringBuffer????????String????
????????String???????????????
????1????????? *.length();//?????????е???????????*.length;
????2??????????(1) equals() //?ж???????????
????(2)compareTo() //?ж?????????С???
????(3)compareToIgnoreCase(String int) //??????????????Сд
????(4)== //?ж???????????????
????(5)equalsIgnoreCase() //?????Сд????????ж???????????
????????????????е?????????????????б?????????
????(6)reagionMatches() //?????? public boolean regionMatches(int toffset?? String other??int ooffset??int len);??????String????????????????????other?????????????????????????У????true.?????String ????????????????toffset?????other?????????????ooffset??????????len??
????public boolean reagionMatches(boolean ignoreCase??int toffset??String other??int ooffset??int len);//?ò????????????????????????????????Сд??С?
??????????????????????λ??????
????public char charAt(int index);//???????????indexλ????????????????Χ??0???
???????????????????????????е???λ?????????λ??
??????String??????????????????λ????????????γ????λ??????
????(1)public int indexOf(String str);//??????????????str???????????γ????λ???δ???????-1
????(2)public int indexOf(String str??int fromIndex);//??????????fromIndex????????????str
???????????γ????λ???????????
????(1)public int lastIndexOf(String str);
????(2)public int lastIndexOf(String str??int fromIndex);
???????????????????????λ????????public boolean contains(CharSequence s);
?????塢????????????????????????
?????????????????????
????(1)public boolean starWith(String prefix??int toffset);//???????prefix?????????????????????????toffset????????????????????true
????(2)public boolean starWith(String prefix);
???????????????????
????public boolean endsWith(String suffix);