MCPcopy Index your code
hub / github.com/BruceEckel/OnJava8-Examples / main

Method main

enums/menu/Meal.java:9–17  ·  view source on GitHub ↗
(String[] args)

Source from the content-addressed store, hash-verified

7
8public class Meal {
9 public static void main(String[] args) {
10 for(int i = 0; i < 5; i++) {
11 for(Course course : Course.values()) {
12 Food food = course.randomSelection();
13 System.out.println(food);
14 }
15 System.out.println("***");
16 }
17 }
18}
19/* Output:
20SPRING_ROLLS

Callers

nothing calls this directly

Calls 2

valuesMethod · 0.80
randomSelectionMethod · 0.45

Tested by

no test coverage detected