String.equals()与String.equalsIgnoreCase( )区别
String.equals()与String.equalsIgnoreCase( )区别
/**
* String.equals()对大小写敏感! * String.equalsIgnoreCase( )则忽略大小写
*/ public static void main(String[] args) { System.out.println("aa".equals("AA")); System.out.println("aa".equalsIgnoreCase("AA")); } //============== false true