17 lines
492 B
Java
17 lines
492 B
Java
// enums/menu/TypeOfFood.java
|
|
// (c)2016 MindView LLC: see Copyright.txt
|
|
// We make no guarantees that this code is fit for any purpose.
|
|
// Visit http://mindviewinc.com/Books/OnJava/ for more book information.
|
|
// {java enums.menu.TypeOfFood}
|
|
package enums.menu;
|
|
import static enums.menu.Food.*;
|
|
|
|
public class TypeOfFood {
|
|
public static void main(String[] args) {
|
|
Food food = Appetizer.SALAD;
|
|
food = MainCourse.LASAGNE;
|
|
food = Dessert.GELATO;
|
|
food = Coffee.CAPPUCCINO;
|
|
}
|
|
}
|