Skip to content

Commit 7ee4edf

Browse files
add a method to print double arrays
1 parent ae68f30 commit 7ee4edf

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+
public static void printArray(double[] booleans) {
40+
for (double i : booleans) {
41+
System.out.print(i + ", ");
42+
}
43+
System.out.println();
44+
}
45+
3946
public static void printArray(int[] nums) {
4047
for (int i : nums) {
4148
System.out.print(i + ", ");

0 commit comments

Comments
 (0)