Q. In Java, what is the purpose of the endsWith() method of a String object?
β
Correct Answer: (A)
To check if the string ends with a specified character
You must be Logged in to update hint/solution