an if statement that searches a string
in
Programming Questions
•
2 years ago
This is probably really simple, but is there a way to search a string for a word in an if statement?
EDIT:
I got this working. Is there a way to search for multiple words?
- if(entry.getTitle().contains("green latern")){
- chooser=0;
- }
- else{
- chooser=1;
- }
1