Here you can find the source of printMatrix(double[][] matrix)
public static void printMatrix(double[][] matrix)
//package com.java2s; //License from project: Open Source License import java.util.Arrays; public class Main { public static void printMatrix(double[][] matrix) { for (int i = 0; i < matrix.length; i++) { String line = Arrays.toString(matrix[i]); line = line.replaceAll(", ", "\t"); System.out.println(line); }//w w w. ja va 2 s. c o m System.out.println(); } }