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

Commit7ee4edf

Browse files
add a method to print double arrays
1 parentae68f30 commit7ee4edf

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

‎src/main/java/com/fishercoder/common/utils/CommonUtils.java

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,13 @@ public static void printArray(boolean[] booleans) {
3636
System.out.println();
3737
}
3838

39+
publicstaticvoidprintArray(double[]booleans) {
40+
for (doublei :booleans) {
41+
System.out.print(i +", ");
42+
}
43+
System.out.println();
44+
}
45+
3946
publicstaticvoidprintArray(int[]nums) {
4047
for (inti :nums) {
4148
System.out.print(i +", ");

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp