endsWith() Returns TRUE if the current String ends with s; otherwise FALSE. Syntax Boolean endsWith(String s) s is the suffix to search for. Related conceptsstartsWith()