Here you can find the source of printMatrix(double[][] sims)
public static void printMatrix(double[][] sims)
//package com.java2s; //License from project: Open Source License public class Main { public static void printMatrix(double[][] sims) { if (sims.length == 0) return; for (int i = 0; i < sims.length; i++) { for (int j = 0; j < sims[0].length; j++) { System.out.printf("%.2f ", sims[i][j]); }//from ww w . ja v a 2 s. co m System.out.println(); } } }