public final class Strings extends Object
public static boolean isMatch(String s, String p)
'?' Matches any single character.
'*' Matches any sequence of characters (including the empty sequence).
isMatch("aa","a") = false
isMatch("aa","aa") = true
isMatch("aaa","aa") = false
isMatch("aa", "*") = true
isMatch("aa", "a*") = true
isMatch("ab", "?*") = true
isMatch("aab", "c*a*b") = false
s - the textp - the wildcard patterntrue if the string match patternCopyright © 2023. All rights reserved.