// example that illustrates the creation of a few arrays, as well // as shows the automatic initialization of the array elements // (for built-in types) public class Array4 { static class Yadda { public Yadda() { } } public static void main(String[] args) { printStats(3.4, 5.6, 6.7, 7.8, 8.9); Yadda temp = new Yadda(); System.out.println(); } static void printStats(double... values) { for (int i = 0; i < values.length; i++) System.out.print(values[i] + " "); } }