Print Double Array in Java

PHOTO EMBED

Saved by [deleted user] #java

double[] doubleArray = { 7.0, 9.0, 5.0, 1.0, 3.0 };
System.out.println(Arrays.toString(doubleArray));
content_copyCOPY

Output will look like: [7.0, 9.0, 5.0, 1.0, 3.0 ]

https://stackoverflow.com/questions/409784/whats-the-simplest-way-to-print-a-java-array