Java code for Lunch Check