已知String s1 = "ABCD1234"; String s2="abcd1234"; 下面结果为true的是
A: s1==s2;
B: s1.equals(s2);
C: s1. equalsIgnoreCase (s2);
D: s1.compareTo(s2);
A: s1==s2;
B: s1.equals(s2);
C: s1. equalsIgnoreCase (s2);
D: s1.compareTo(s2);
举一反三
- 以下程序的输出结果是 String s1="1",s2="2"; String s=s1+s2; System.out.println(s);
- 设s="abcd",s1="123",则执行语句s2=InsStr(s,2,s1)后,s2=()
- 已知String s1 = "ABCD1234";String s2 = new String("ABCD1234");下面结果为true 的是: A: s1==s2; B: s1==s2.intern(); C: s1.compareTo(s2); D: s1.isEmpty();
- 设s="abcd" ,s1="123" ,则执行语句s2=InsStr(s,2,s1)后,s2= A: "123abcd" B: "a123bcd" C: "ab123cd" D: "abc123d"
- 设字符串S1=″ABCDEFG″,S2=″PQRST″,则运算 S=CONCAT(SUBSTR(S1,2,LENGTH(S2)),SUBSTR(S1,LENGTH(S2),2)) 后S的结果为() A: ″BCQR″ B: ″BCDEF″ C: ″BCDEFG″ D: ″BCDEFEF″