Java文字列endsWith
startsWith

endsWith文字列

replace

この文字列が指定したサフィックスで終わるかどうかを確認します。

構文

str.endsWith(suffix)