Here you can find the source of printOutArrayProperty(String key, E[] property, boolean isDefault)
private static <E> void printOutArrayProperty(String key, E[] property, boolean isDefault)
//package com.java2s; //License from project: Open Source License import java.util.*; public class Main { private final static String FORMAT = "%-60s%s"; private final static String FORMAT_DEFAULT = "%-80s%s"; private final static Map<Integer, String> propertiesInUse = new HashMap<>(); private static <E> void printOutArrayProperty(String key, E[] property, boolean isDefault) { StringBuilder value = new StringBuilder(); for (int i = 0; i < property.length; i++) { value.append(property[i].toString()); if (i != property.length - 1) { value.append(","); }/* ww w. j a va 2 s.c o m*/ } if (isDefault) { printOutLine(String.format(FORMAT_DEFAULT, key, " = " + value.toString())); } else { printOutLine(String.format(FORMAT, key, " = " + value.toString())); } } private static void printOutLine(String line) { propertiesInUse.put(propertiesInUse.size() + 1, line); } }