I have this program that takes user input and searches a data file for cars that meet the users preferences. here are the final print statements in my loop, my question is lets say no cars meet the user preferences how would I get a statement that would say "no cars match your preference" without it comming out just evertime one car doesn't match the preferences? /Output for for the loop
if ((fitWeight >=80) && (carType.compareTo(type)==0))