How to check whether an input string contains a specified substring ignoring the case using JSP?
Answers
Answered by
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
Biology,
6 months ago
Science,
6 months ago
Math,
6 months ago
Computer Science,
1 year ago
Math,
1 year ago