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

Method fill

collections/PrintingCollections.java:9–16  ·  view source on GitHub ↗
(Collection<String> collection)

Source from the content-addressed store, hash-verified

7
8public class PrintingCollections {
9 static Collection
10 fill(Collection<String> collection) {
11 collection.add("rat");
12 collection.add("cat");
13 collection.add("dog");
14 collection.add("dog");
15 return collection;
16 }
17 static Map fill(Map<String, String> map) {
18 map.put("rat", "Fuzzy");
19 map.put("cat", "Rags");

Callers 1

mainMethod · 0.95

Calls 2

addMethod · 0.45
putMethod · 0.45

Tested by

no test coverage detected