Hello everyone
I'm going out of my mind as to why this doesn't work, any help on the matter would be very helpful. I'll try and lay this out so its easy to read.
It keeps saying missing return statement!
thanks
public boolean search(String searchString) { int index = 0; boolean found = false; while(index < notes.size() && !found) { String note = notes.get(index); if(note.contains(searchString)) { found = true; } else { index++; } } if(found) { System.out.println("Found search term in note: " + notes.get(index)); } else { System.out.println("Search term not found."); }}