更多“在匹配器(Matcher)类中,用于寻找下一个模式匹配串的方法是()。A.staticbooleanmatches()B.boolean ”相关问题
  • 第1题:

    在匹配器(Matcher)类中,用于寻找下一个模式匹配串的方法是( )。 A.static boolean matchesSXB

    在匹配器(Matcher)类中,用于寻找下一个模式匹配串的方法是( )。

    A.static boolean matches

    B.boolean matcher.find

    C.int matcher.start

    D.int matcher.end


    正确答案:A
    A。【解析】本题考查考生对Java中的匹配器(Mateher)类的理解。Matcher类用于将一个输入字符串input和模式串pattern相比较。Booleanmateher.find方法用于寻找下一个模式匹配串;intmatcher.start方法用于返回匹配串的一个起始索引整数值;intmatcher.end方法用于返回匹配串的一个终止索引整数值。而用于输入字符串与模式串比较的方法是staticbooleanmatches,选项A正确。

  • 第2题:

    在匹配器(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。

  • 第3题:

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

    A.static boolean matches()

    B.boolean matcher,find()

    C.int matcher,start()

    D.int matcher,end()


    正确答案:A
    解析:本题考查对Java中的匹配器(Matcher)类的理解。Matcher类用于将一个输入字符串input和模式串pattern相比较。boolean matcher,find()方法用于寻找下一个模式匹配串:int matcher,start()方法用于返回匹配串的一个起始索引整数值:int matcher,end()方法用于返回匹配串的一个终止索引整数值。而用于输入字符串与模式串比较的方法是static boolean matches(),选项A正确。

  • 第4题:

    在匹配器(Matcher)类中,用于寻找下-个模式匹配串的方法是( )。A.static boolean matches( )S

    在匹配器(Matcher)类中,用于寻找下-个模式匹配串的方法是( )。

    A.static boolean matches( )

    B.boolean marcher.find( )

    C.int matcher.start( )

    D.int matcher.end( )


    正确答案:A
    本题考查考生对Java中的匹配器(Matc-her)类的理解。Matcher类用于将-个输入字符串input和模式串pattern相比较。Booleanmatcher.find()方法用于寻找下-个模式匹配串;intmatcher.start()方法用于返回匹配串的-个起始索引整数值;intmatcher.end()方法用于返回匹配串的-个终止索引整数值。而用于输入字符串与模式串比较的方法是staticbooleanmatches(),选项A正确。

  • 第5题:

    在匹配器(Matcher)类中,用于寻找下一个模式匹配串的方法是

    A.static boolean matches()

    B.boolean matcher.find()

    C.int matcher.start()

    D.int matcher.end()


    正确答案:B
    解析:本题考查考生对Java中的匹配器(Matcher)类的理解。Marcher类用于将一个输入字符串input和模式串pattern相比较。 boolean matcher.find()方法用于寻找下一个模式匹配串;int matcher.start()方法用于返回匹配串的一个起始索引整数值;int matcher.end()方法用于返回匹配串的一个终止索引整数值。而用于输入字符串与模式串比较的方法是static boolean matches(),选项 B正确。