List of utility methods to do List Print
void | printListPair(List print List Pair if (list.isEmpty()) System.out.println("\tNO ITEM !!"); for (int i = 0; i < list.size(); i++) { System.out.print(list.get(i) + " "); if ((i + 1) % 2 == 0) System.out.println(); |
String | printListStrings(List print List Strings StringBuilder sb = new StringBuilder(); sb.append("\nLIST_START of " + listDescription + " count:" + list.size()).append("\n[\n"); for (String s : list) { sb.append(s).append("\n"); sb.append("]\nLIST_END of " + listDescription + " count:" + list.size()).append("\n"); return sb.toString(); |
void | printListV(List print List V for (int i = 0; i < l.size(); i++) System.out.println(l.get(i)); |
String | printListWithDelimiter(Collection print List With Delimiter boolean first = true; StringBuilder sb = new StringBuilder(); for (T el : list) { if (first) { first = false; } else { sb.append(delimiter); sb.append(el); return sb.toString(); |
void | println(List println System.out.println( "---------------------------------------------------------------------------------------\n"); for (String line : text) { System.out.println(line); |
void | printlnList(List> list) println List if (list != null) { for (Object o : list) { System.out.println(o.toString()); } else { System.out.println("list is null"); |
void | printMap(HashMap print Map for (String s : listHashMap.keySet()) { System.out.print(s + ": ["); for (String n : listHashMap.get(s)) { System.out.print(n + " "); System.out.print("]\n"); |
void | printNonEmptyList(List print Non Empty List int len = list.size(); System.out.print("["); for (int i = 0; i < len; i++) { if (i == len - 1) { System.out.println(list.get(i) + "]"); } else { System.out.print(list.get(i) + ", "); |
void | printObjectList(List Print a list of Strings separated by '/' System.out.println("*StringList print starts:"); for (Object s : list) { System.out.print("/" + s.toString()); System.out.print("*StringList print ends."); System.out.println(); |
void | printout(List printout boolean firstLoop = true; for (String s : record) { if (firstLoop) { firstLoop = false; } else { System.out.print("|"); System.out.print(s); ... |