Here you can find the source of printMatrix(final double m[][])
public static String printMatrix(final double m[][])
//package com.java2s; //License from project: Open Source License public class Main { public static String printMatrix(final double m[][]) { StringBuilder sb = new StringBuilder(); for (int i = 0; i < m.length; ++i) { for (int j = 0; j < m[i].length; ++j) { if (j > 0) { sb.append('\t'); }// w ww . ja v a 2s.c o m sb.append(m[i][j]); } sb.append('\n'); } return sb.toString(); } }