Last active
August 29, 2015 14:10
-
-
Save SZanlongo/8405013d1c498f764493 to your computer and use it in GitHub Desktop.
Print NxN matrix
From https://stackoverflow.com/questions/4328442/how-can-i-display-a-n-x-n-matrix-of-random-numbers-in-java
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public void printGraph(double[][] array, int n) { | |
for (int i = 0; i < n; i++) { | |
for (int j = 0; j < n; j++) { | |
System.out.println(array[i][j]); | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment