Answered You can hire a professional tutor to get the answer.
Print either "Fruit" or "Drink" (followed by a newline) depending on the value of userItem. For example, if userItem is GR_APPLES, output should...
import java.util.Scanner;
public class GrocerySorter {
public enum GroceryItem {GR_APPLES, GR_BANANAS, GR_JUICE, GR_WATER};
public static void main (String [] args) {
GroceryItem userItem = GroceryItem.GR_APPLES;
if((userItem == GroceryItem.GR_APPLES) || (userItem == GroceryItem.GR_BANANAS)
return;
}
}