Because mulDropOff does not equals "yes" or "y". Print out the result of mulDropOff. I suspect scan.nextLine() is getting extra text that you are not expecting.