假设String a="abc",String b="aBc",则a.equals(b)的结果为( )
A. false
B. true
C. yes
D. no
查看答案
StringBuffer a=new StringBuffer("hello"),则a.setCharAt(1,a)的结果为( )
A. heello
B. heallo
C. hallo
D. haallo
StringBuffer a=new StringBuffer("abcdefg"),则a.replace(2,5,"h")的结果为( )
A. abhg
B. abhfg
C. abhefg
D. abhdeg
假设Pattern p=Pattern.compile("\\d+");Matcher m=p.matcher("22bb23"); 则m.matches()的结果为true。
A. 对
B. 错
假设Pattern p=Pattern.compile("\\d+");Matcher m=p.matcher("22bb23"); 则m.lookingAt()的返回结果为true.
A. 对
B. 错