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

Method array

onjava/Rand.java:205–210  ·  view source on GitHub ↗
(int sz)

Source from the content-addressed store, hash-verified

203 return getAsDouble();
204 }
205 public double[] array(int sz) {
206 double[] result = r.doubles(sz).toArray();
207 Arrays.setAll(result,
208 n -> result[n] = trim(result[n]));
209 return result;
210 }
211 }
212 class String
213 implements Supplier<java.lang.String> {

Callers

nothing calls this directly

Calls 2

trimMethod · 0.80
setAllMethod · 0.45

Tested by

no test coverage detected