摘要:
getProperties()方法:确定当前的系统属性。 阅读全文
摘要:
1、基本数据类型包装类 ● 将字符串转成基本数据类型 static Xxx parseXxx(String s),其中 Xxx 表示基本类型,此方法可将字符串转换成任意的基本类型,如果字符串无法转成基本类型,将会发生数字转换的问题 NumbeFormatException。 ● Integer 类的 阅读全文
摘要:
1、正则表达式 ● 匹配正确的数字: 匹配正整数:“\\d+” 匹配正小数:"\\d+\\.\\d+" 匹配负整数:"-\\d+" 匹配负小数:"-\\d+\\.\\d+" 匹配保留两位小数的正数:"\\d+\\.\\d{2}" 匹配保留 1-3 位小数的正数:"\\d+\\.\\d{1,3}" ● 阅读全文