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

Method main

onjava/TestRange.java:13–20  ·  view source on GitHub ↗
(String[] args)

Source from the content-addressed store, hash-verified

11 System.out.println(Arrays.toString(rng));
12 }
13 public static void main(String[] args) {
14 show(range(10, 21, 3));
15 show(range(21, 10, -3));
16 show(range(-5, 5, -3));
17 show(range(-5, 5, 3));
18 show(range(10, 21));
19 show(range(10));
20 }
21}
22/* Output:
23[10, 13, 16, 19]

Callers

nothing calls this directly

Calls 2

showMethod · 0.95
rangeMethod · 0.80

Tested by

no test coverage detected