byte[] getbytes(): 把字符串转换为字节数组
byte[] getBytes(Charset charset)
char[] toCharArray(): 把字符串转换为字符数组。
void getChars(int srcBegin, int srcEnd, char[] dst, int dstBegin)static String copyValueOf(char[] data) 返回指定数组中表示该字符序列的 String。
static String copyValueOf(char[] data, int offset, int count) : 返回指定数组中表示该字符序列的 String。
String toLowerCase(): 转小写4.比较功能
String toUpperCase(): 转大写
String concat(String str): 拼接字符串 (concatenate)
| 欢迎光临 黑马程序员技术交流社区 (http://bbs.itheima.com/) | 黑马程序员IT技术论坛 X3.2 |