So how do you check if a string has a particular word in it?
So this is my code:
a.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View arg0) {
// TODO Auto-generated method stub
if(d.contains("Hey")){
c.setText("OUTPUT: SUCCESS!");
}else{
c.setText("OUTPUT: FAIL!");
}
}
});
I'm getting an error.