So how do you check if a string has a particular word in it?
So this is my code:
a.setOnClickListener(new View.OnClickListener() { @Overri
Maybe this post is old, but I came across it and used the "wrong" usage. The best way to find a keyword is using .contains, example:
.contains
if ( d.contains("hello")) { System.out.println("I found the keyword"); }