标题 标题 重点内容 Java中去除字符串中所有空格的几种方法你知道String、StringBuffer和StringBuilder之间的区别吗? 重点内容 jdk1.7并没有新的指令来处理switch string,而是通过调用switch中string.hashCode,将string转换为int从而进行判断。 具体可以参考:http://freish.iteye.com/blog/1152921