首页
外语
计算机
考研
公务员
职业资格
财经
工程
司法
医学
专升本
自考
实用职业技能
登录
计算机
在匹配器(Matcher)类中,用于寻找下一个模式匹配串的方法是______。
在匹配器(Matcher)类中,用于寻找下一个模式匹配串的方法是______。
admin
2010-12-17
32
问题
在匹配器(Matcher)类中,用于寻找下一个模式匹配串的方法是______。
选项
A、static boolean matches( )
B、boolean matcher.find( )
C、int matcher.start( )
D、int matcher.end( )
答案
B
解析
Matcher类用于将一个输入字符串input和模式串pattern进行比较。static boolean matches( )方法用于对input和pattern进行比较。boolean matcher.find( )方法用于寻找下一个模式匹配串。int matcher.start( )方法用于寻找下一个起始索引整数值。int matcher.end( )方法用于返回匹配串的一个终止索引整数值。所以正确选项是B。
转载请注明原文地址:https://jikaoti.com/ti/LoH0FFFM
本试题收录于:
二级Java题库NCRE全国计算机二级分类
0
二级Java
NCRE全国计算机二级
相关试题推荐
软件生命周期可分为定义阶段、开发阶段和维护阶段,下面属于定义阶段任务的是
数据库DB、数据库系统DBS、数据库管理系统DBMS之间的关系是
在面向对象方法中,不属于“对象”基本特点的是
下列选项中不属于结构化程序设计方法的是
下面叙述中错误的是
下列关于汇编语言程序的说法中,正确的是()。
给标识符关联名字的过程是
下面关于Python中实参和形参的说法错误的是()。
向容器中添加构件的方法是______。
随机试题
以下哪一项不是急性呼吸窘迫综合征初期的典型临床表现
局部治疗唇疱疹最有效的药物是
根据《商业银行法》的规定,商业银行同业拆借的拆入资金可用于下列哪些用途?
根据《建设工程安全生产管理条例》的规定,应编制专项施工方案,并附具安全验算结果的分部分项工程包括()。
不能作为电算化系统硬件工作方式选择的依据包括()。
某机械公司新任人力资源部部长W先生,在一次研讨会上学到了一些他自认为不错的培训经验,他回来后就兴致勃勃地向公司提交了一份全员培训计划书,要求对公司全体人员进行为期一周的脱产计算机培训,以提升全员的计算机操作水平。不久,该计划书获批准。公司还专门下拨十几万元
Isathleteprowessattainedorinnate?Thosewhohavesufferedthescoldingofatyrannicalgamesmasteratschoolmightbeforg
Asurveyhasfoundthatonlyathirdofemployeesplannedtostayintheirjobin2020,withlackoffeedbackbeingakeyfactor
DerVatergibt______TochterdenWagen.
Theotherproblemthatarisesfromtheemploymentofwomenisthatoftheworkingwife.Ithastwoaspects:thatofthewifewho
最新回复
(
0
)