String s1="sddfb dbdf shd jhfsg"; String[] str; str= s1.split("[.] ");中的[ . ]是什么意思
正则表达式表示.这个符号,不加[],会按任意字符去处理
s1.split("[.] ");是分割字符串,按[.]作为分割符。