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 - How to display all orders for a single product showing the most recent first? Woocommerce -

asp.net - How to correctly use QUERY_STRING in ISAPI rewrite? -

angularjs - How restrict admin panel using in backend laravel and admin panel on angular? -