ページの作成:「(String).endsWith [https://docs.oracle.com/javase/jp/8/docs/api/java/lang/String.html#endsWith-java.lang.String-]<br> public boolean matches(String regex) この文…」
 
編集の要約なし
1行目: 1行目:
([[String]]).endsWith [https://docs.oracle.com/javase/jp/8/docs/api/java/lang/String.html#endsWith-java.lang.String-]<br>
([[String]]).endsWith [https://docs.oracle.com/javase/jp/8/docs/api/java/lang/String.html#endsWith-java.lang.String-]<br>
public boolean matches(String regex)
public boolean endsWith(String suffix)


この文字列が、指定された接尾辞で終るかどうかを判定します。
この文字列が、指定された接尾辞で終るかどうかを判定します。

2019年5月31日 (金) 09:44時点における版

(String).endsWith [1]
public boolean endsWith(String suffix)

この文字列が、指定された接尾辞で終るかどうかを判定します。

if (input.matches("ho[gbw]e")) {
    System.out.println("It matches!");
}