Java?г???????????????
???????????? ???????[ 2014/2/18 10:53:22 ] ???????????? ???????
?????????????????????????
????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);
??????
???·???
??????????????????
2023/3/23 14:23:39???д?ò??????????
2023/3/22 16:17:39????????????????????Щ??
2022/6/14 16:14:27??????????????????????????
2021/10/18 15:37:44???????????????
2021/9/17 15:19:29???·???????·
2021/9/14 15:42:25?????????????
2021/5/28 17:25:47??????APP??????????
2021/5/8 17:01:11