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

Method main

patterns/recyclea/RecycleA.java:29–36  ·  view source on GitHub ↗
(String[] args)

Source from the content-addressed store, hash-verified

27
28public class RecycleA {
29 public static void main(String[] args) {
30 List<Trash> bin =
31 Stream.generate(SimpleFactory::random)
32 .limit(10)
33 .collect(Collectors.toList());
34 Bins bins = new Bins(bin);
35 bins.show();
36 }
37}
38/* Output:
39Aluminum weight: 0.34 * price: 1.67 = 0.57

Callers

nothing calls this directly

Calls 1

showMethod · 0.95

Tested by

no test coverage detected