Skip to content

Commit ebce0f8

Browse files
add a new line for every 10 prints
1 parent f1b4bab commit ebce0f8

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

‎Common/src/utils/CommonUtils.java

+4-1
Original file line numberDiff line numberDiff line change
@@ -163,9 +163,12 @@ public static void printIntegerList(List<List<Integer>> res) {
163163
}
164164

165165
public static <T> void printList(List<T> list) {
166+
int count = 0;
166167
for(T t : list){
168+
count++;
167169
System.out.print(t);
168-
System.out.print(",");
170+
if(count%10 != 0) System.out.print("\t");
171+
else System.out.println();
169172
}
170173
System.out.println();
171174
}

0 commit comments

Comments
 (0)