??javascript??java?е??????
???????????? ???????[ 2015/5/29 14:17:04 ] ????????Java
????java?????????
?????????????????
????1??????? String str=”hello“??//?????????????
????2?????new????? String str=new String("hello")
?????????????????????
??????????????????????????????????????????д???????”hello“?????????????”hello“??е???????????????????????棬????????????????
?????????????????????????????
?????????????????÷???
????java?????????????????????÷?????js??????????????
????1??public char charAt(int index) ??????????????? char ?
????2??public String concat(String str) ?????????????????????????β??
????3??public int indexOf(String str??int fromIndex) ???????????????????????е???γ????????????
????????????
??????????????????????淽????
????1??public int length() ??????????????? ?????js????????????
????2??public boolean startsWith(String prefix?? int toffset) ??????????????????????????????????????????????
????3??public boolean endsWith(String suffix) ????????????????????????????
????4??public char[] toCharArray() ?????????????????μ???????顣
????5??public void getChars(int srcBegin?? int srcEnd??char[] dst??int dstBegin) ???????????????????????????顣
??????????????????????
???????????????????
???????”?????????“
????1??StringBuffer sb=new StringBuffer("df");//??????
???????÷?????
????append()
????insert()
????replace()
????indexOf()
????2??StringBuilder sb =new StringBuilder("dsf")
??????????????????? ????StringBuffer??
??????????????????Stringbuffer????
??????
???·???
??????????????????
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