题目内容

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. 错

假设Pattern p=Pattern.compile("\\d+");Matcher m=p.matcher("aa2223"); 则m2.lookingAt()的返回结果为true.

A. 对
B. 错

答案查题题库