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

Commitf1b4bab

Browse files
add a generic printList method
1 parentd746043 commitf1b4bab

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

‎Common/src/utils/CommonUtils.java

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -162,4 +162,12 @@ public static void printIntegerList(List<List<Integer>> res) {
162162
}
163163
}
164164

165+
publicstatic <T>voidprintList(List<T>list) {
166+
for(Tt :list){
167+
System.out.print(t);
168+
System.out.print(",");
169+
}
170+
System.out.println();
171+
}
172+
165173
}

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp