編集の要約なし |
編集の要約なし |
||
2行目: | 2行目: | ||
public boolean endsWith(String suffix) | public boolean endsWith(String suffix) | ||
指定文字列で終わるか調べます。equals メソッドが使われています。 | |||
if (input. | if (input.endsWith("ho")) { | ||
System.out.println("It | System.out.println("It ends with 'ho' ."); | ||
} | } |