public static void main(String[] args) { double[] dArray = new double[3]; net.mindview.util.CountingGenerator.Double dl = new net.mindview.util.CountingGenerator.Double(); for (int i = 0; i < 3; i++) { dArray[i] = dl.next(); } System.out.println(Arrays.toString(dArray)); // OR double[] dArray2 = ConvertTo.primitive(Generated.array(Double.class, new CountingGenerator.Double(), 5)); System.out.println(Arrays.toString(dArray2)); }
public static void main(String[] args) { double[] doubles = ConvertTo.primitive(Generated.array(Double.class, new CountingGenerator.Double(), 10)); print(Arrays.toString(doubles)); }