A-A+
在匹配器(Matcher)类中 用于输入字符串与模式串比较的方法是()。A.static B
问题详情
在匹配器(Matcher)类中,用于输入字符串与模式串比较的方法是()。
A.static Boolean matches()
B.boolean matcher.find()
C.int matcher.start()
D.int matcher.end()请帮忙给出正确答案和分析,谢谢!
参考答案
正确答案:A
解析:匹配器类用于比较输入字符串与模式串。该类的方法有:matches ()、find ()、 start ()、end ()等,其中用于输入字符串与模式串比较的方法是matches ()。