OnJava8-Examples/net/mindview/util/PrintArray.java

16 lines
398 B
Java
Raw Normal View History

2015-05-27 18:27:06 -07:00
//: net/mindview/util/PrintArray.java
2015-05-29 14:18:51 -07:00
// <20>2015 MindView LLC: see Copyright.txt
2015-05-27 18:27:06 -07:00
// Display an array of double
package net.mindview.util;
public class PrintArray {
public static void printArray(double[] array) {
for(int i = 0; i < array.length; i++) {
System.out.print(array[i]);
if(i != array.length -1)
System.out.print(", ");
}
System.out.println();
}
} ///:~