java - Best way to find a full word on a string -
i'm doing project , need find full word in string example "hello stackoverflow, have nice day"
want know if word "over"
in string. should use tolowercase()
avoid problems?
string = "hello stackoverflow"; if (a.indexof("over") >= 0) system.out.println("found"); else system.out.println("not found");
use tolowercase()
if unsure of case.
Comments
Post a Comment