« Back
package com.string; public class StringEndsWith { public static void main(String[] args) { String str = "!Hello Codersarts @"; System.out.println(str.endsWith("s @")); System.out.println(str.endsWith("s !")); } }
true
false
×
Report a Problem:
Description:
Submit