"String".matches [1] public boolean matches(String regex)
正規表現を利用して指定文字列と一致するか真偽します。
if (s.matches("ho[gbw]e")) { System.out.println("It matches!"); }