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

Popular posts from this blog

php - Autoloader issue not returning Class -

java - How to put two numbers separated by a space into two different arrays -

c++ - Why am i getting wrong values when performing PE base relocation? -