i have a
String s1. user is queried to enter a sub-String sSub.
i need to see if sSub exists within s1.
eg;,
s1 = "JAVA programming is wonderful";
sSub = "AVA"
if sSub exists in s1 return "TRUE else return false;
result is boolean and MUST be case sensitive.
i see lastIndexOf() and indexOf() but am really looking for something like
anyIndexOf().
so how do you perform this little trick?
