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

Method main

generics/ArrayMaker.java:15–20  ·  view source on GitHub ↗
(String[] args)

Source from the content-addressed store, hash-verified

13 return (T[])Array.newInstance(kind, size);
14 }
15 public static void main(String[] args) {
16 ArrayMaker<String> stringMaker =
17 new ArrayMaker<>(String.class);
18 String[] stringArray = stringMaker.create(9);
19 System.out.println(Arrays.toString(stringArray));
20 }
21}
22/* Output:
23[null, null, null, null, null, null, null, null, null]

Callers

nothing calls this directly

Calls 2

createMethod · 0.95
toStringMethod · 0.45

Tested by

no test coverage detected