Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitebce0f8

Browse files
add a new line for every 10 prints
1 parentf1b4bab commitebce0f8

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

‎Common/src/utils/CommonUtils.java

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

165165
publicstatic <T>voidprintList(List<T>list) {
166+
intcount =0;
166167
for(Tt :list){
168+
count++;
167169
System.out.print(t);
168-
System.out.print(",");
170+
if(count%10 !=0)System.out.print("\t");
171+
elseSystem.out.println();
169172
}
170173
System.out.println();
171174
}

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp