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

Method main

enums/RandomTest.java:11–15  ·  view source on GitHub ↗
(String[] args)

Source from the content-addressed store, hash-verified

9
10public class RandomTest {
11 public static void main(String[] args) {
12 for(int i = 0; i < 20; i++)
13 System.out.print(
14 Enums.random(Activity.class) + " ");
15 }
16}
17/* Output:
18STANDING FLYING RUNNING STANDING RUNNING STANDING LYING

Callers

nothing calls this directly

Calls 2

randomMethod · 0.95
printMethod · 0.80

Tested by

no test coverage detected