摘要: 今天使用split分割"."的时候居然失败了,经过百度发现原来要加转义字符才行。 正确的写法: 结果: 如果不加转义就会分割失败,返回一个空的字符串数组。 API中是这样写的: public String[] split(String regex) Splits this string around 阅读全文
posted @ 2017-04-27 10:15 MasterGuo 阅读(602) 评论(0) 推荐(0) 编辑
我的个人博客\ (•◡•) /