Here you can find the source of printDoubleArray(double[] array)
public static final void printDoubleArray(double[] array)
//package com.java2s; public class Main { public static final void printDoubleArray(double[] array) { int max_int_digit = 0; for (int i = 0; i < array.length; i++) { String d_str = String.valueOf(array[i]); String[] i_array = d_str.split("\\.", -1); System.out.printf(String.format("%40s", i_array[0])); System.out.printf("."); System.out.printf(String.format("%-40s%n", i_array[1])); }//from w w w . java 2 s .co m } }