在使用toLowerCase()方法时, 尽量使用toLowerCase(Locale.US)这个方法来代替(需import java.util.Locale;); 或使用equalsIgnoreCase()方法来比较。 转自:http://blog.csdn.net/fane1157521/article/details/7847248