全国计算机二级Java语言程序设计辅导23
求学快递网计算机等级考试专题重点推荐:2016年计算机二级考试报考时间 、2016年计算机二级考试证书领取时间、2016年计算机二级考试报考指南、2016年计算机二级考试大纲、2016年计算机二级考试政策、2016年计算机二级考试报考条件、2016年计算机二级考试科目等最新新闻资讯。
下面是String类支持的方法,更多详细,参看Java API文档:
SN(序号) | 方法描述 |
1 | char charAt(int index) |
2 | int compareTo(Object o) |
3 | int compareTo(String anotherString) |
4 | int compareToIgnoreCase(String str) |
5 | String concat(String str) |
6 | boolean contentEquals(StringBuffer sb) |
7 | static String copyValueOf(char[] data) |
8 | static String copyValueOf(char[] data, int offset, int count) |
9 | boolean endsWith(String suffix) |
10 | boolean equals(Object anObject) |
11 | boolean equalsIgnoreCase(String anotherString) |
12 | byte[] getBytes() |
13 | byte[] getBytes(String charsetName) |
14 | void getChars(int srcBegin, int srcEnd, char[] dst, int dstBegin) |
15 | int hashCode() |
16 | int indexOf(int ch) |
17 | int indexOf(int ch, int fromIndex) |
18 | int indexOf(String str) |
19 | int indexOf(String str, int fromIndex) |
20 | String intern() |
21 | int lastIndexOf(int ch) |
22 | int lastIndexOf(int ch, int fromIndex) |
23 | int lastIndexOf(String str) |
24 | int lastIndexOf(String str, int fromIndex) |
25 | int length() |
26 | boolean matches(String regex) |
27 | boolean regionMatches(boolean ignoreCase, int toffset, String other, int ooffset, int len) |
28 | boolean regionMatches(int toffset, String other, int ooffset, int len) |
29 | String replace(char oldChar, char newChar) |
30 | String replaceAll(String regex, String replacement |
31 | String replaceFirst(String regex, String replacement) |
32 | String[] split(String regex) |
33 | String[] split(String regex, int limit) |
34 | boolean startsWith(String prefix) |
35 | boolean startsWith(String prefix, int toffset) |
36 | CharSequence subSequence(int beginIndex, int endIndex) |
37 | String substring(int beginIndex) |
38 | String substring(int beginIndex, int endIndex) |
39 | char[] toCharArray() |
40 | String toLowerCase() |
41 | String toLowerCase(Locale locale) |
42 | String toString() |
43 | String toUpperCase() |
44 | String toUpperCase(Locale locale) |
45 | String trim() |
46 | static String valueOf(primitive data type x) |
关注求学快递网计算机等级考试专题,帮你了解最新的2016年计算机二级考试资讯服务和2016计算机二级考试成绩查询,让你轻松备考计算机等级考试!
求学快递网计算机等级考试专题的小编们根据网民搜索喜爱,第一时间公布2016年计算机二级模拟试题、2016年计算机二级考试应试技巧、计算机二级考试历年真题、2016年计算机二级考试章节复习供广大求学爱好者学习使用,欢迎继续关注求学快递网计算机等级考试专题,并给我们提供宝贵的意见!