String类的用法
1.charAt

举例:
2.codePointAt

举例:

3.codePointBefore:

举例:

4.codePointCount:

举例:
5.getChars:

举例:

运行结果:

6.getBytes:

举例:

7.equals:(比较两个字符串)

举例:

8.equalsIgnoreCase:

举例:

9.compareTo:

举例:

10.compareToIgnoreCase:

举例:

11.startsWith:


举例:

12.endWith:

举例:

13.hashCode:

举例:

14.indexOf:


举例:

15.lastIndexfof:



浙公网安备 33010602011771号