Logo

Programming-Idioms

History of Idiom 97 > diff from v31 to v32

Edit summary for version 32 by Debaran:
[Java] Semicolon

Version 31

2018-05-01, 12:31:08

Version 32

2019-02-02, 02:50:35

Idiom #97 Check string suffix

Set boolean b to true if string s ends with string suffix, false otherwise.

Illustration

Idiom #97 Check string suffix

Set boolean b to true if string s ends with string suffix, false otherwise.

Illustration
Extra Keywords
tail
Extra Keywords
tail
Code
boolean b = s.endsWith(suffix)
Code
boolean b = s.endsWith(suffix);
Doc URL
https://docs.oracle.com/javase/7/docs/api/java/lang/String.html#endsWith%28java.lang.String%29
Doc URL
https://docs.oracle.com/javase/7/docs/api/java/lang/String.html#endsWith%28java.lang.String%29