字符串基本操作
Attention:
1.tolowercase touppercase方法
(1)String.toLowerCase(),String.toUpperCase(),故只能字符串使用,字符不行
(2)若是字符串存在字母以外的其他字符,不影響轉換
System.out.println("ASDF We3123%s $@#@safEW".toLowerCase());
結果:
asdf we3123%s $@#@safew
2.
字符串基本操作
Attention:
1.tolowercase touppercase方法
(1)String.toLowerCase(),String.toUpperCase(),故只能字符串使用,字符不行
(2)若是字符串存在字母以外的其他字符,不影響轉換
System.out.println("ASDF We3123%s $@#@safEW".toLowerCase());
結果:
asdf we3123%s $@#@safew
2.
工具方法 /** * 十六進制字符串轉字符串 * * @author 靜心事成 * @param str 原16進制字符串 * @return 字符串 * */ public static Strin