设支付串变量s1=new String("java"),s2=new String("java"),则以下表达式的值为true的是
A.s1.compareToIgnoreCase(s2) B.s1.equais(s2) C.s1.compareTo(s2) D.s1=s2正确答案B
设支付串变量s1=new String("java"),s2=new String("java"),则以下表达式的值为true的是
A.s1.compareToIgnoreCase(s2) B.s1.equais(s2) C.s1.compareTo(s2) D.s1=s2正确答案B