Im trying to print a big double matrix (250x250) to the console in eclipse. The code works for smaller matrices but with 250x250 it only prints the last 50 lines or so. What am I doing wrong ? There are some Infinity Elements which get converted to the string "Inf" but in my testing this hasnt any impact on the output.
for (int x = 0; x < matrix.length; x++) {
for (int y = 0; y < matrix.length; y++) {
if (matrix[x][y] == Double.POSITIVE_INFINITY) {
System.out.print(" " + "Inf" + " ");
} else {
System.out.print(" " + matrix[x][y] + " ");
}
}
System.out.println();
}