Computer Science, asked by Naman4900, 11 months ago

How to check whether an input string contains a specified substring ignoring the case using JSP?

Answers

Answered by khushi769
0

You can use contains(), indexOf() and lastIndexOf() method to check if one String contains another String in Java or not. If a String contains another String then it's known as a substring. The indexOf() method accept a String and return starting position of the string if it exists, otherwise it will return -1.

Similar questions