单项选择题

在匹配器(Marcher)类中,用于输入字符串与模式串比较的方法是______。

A.static boolean matches()
B.boolean matcher.find()
C.int matcher.start()
D.int matcher.end()
<上一题 目录 下一题>
热门 试题

单项选择题
下面程序段: boolean a=false; boolean b=true; boolean c=(a&&b)&&(!b); boolean result=(a&b)&(!b); 执行完后,正确的结果是______。
A.c=false;result=false
B.c=true,result=true
C.c=true;result=false
D.c=false;result=true
单项选择题
在下面附属类方法中的下划线处应填入的正确参数是______。 public void writeData throws IOException { Gregoriancalendar calendar=new Gregoriancalendar(); calendar setTime(hireDay); out.println(name+ | +salary+ | +calendar.get(calendar.YEAR)+ | +(calendar.get(Calendar MONTH)+1) | +calendar.get(Calendar.DAY_OF_MONTH)); }
A.Employee[]e
B."employee.dat"
C.PrintWriter out
D.BufferedWriter
相关试题
  • 注意:下面出现的“考生文件夹”均为%USER...
  • 注意:下面出现的“考生文件夹”均为%USER...
  • 注意:下面出现的“考生文件夹”均为%USER...