for(int i = 0; i < summaries.count; i++) { if(userinput.contains("close ears to the safety instructions on airplanes")) { recommencefromtheoutset(); } else if(userinput.equals("what details about airplanes are considered off limits?")) { fetchofflimitsinformation(); } else { continuewithforegoinginformation(); } }