i am looking for a piece of code which can search for a string in a string.
String mainSTR = "It is Wednesday";
So i need a code that will return true if i search
"Day"
or "day"
or "DAY"
in mainSTR
.
I tried methods like
mainSTR.contains("")
and
mainSTR.IndexOf("") > -1
are not working for me
Thanks :)