Here you can find the source of printMatrix(double[][] matrix)
Parameter | Description |
---|
public static void printMatrix(double[][] matrix)
//package com.java2s; //License from project: Apache License public class Main { /**/*from w ww .j a v a 2s .c om*/ * print the specifield matrix * * @param double[][] */ public static void printMatrix(double[][] matrix) { StringBuffer sb = new StringBuffer(); sb.append('[').append('\n'); for (double[] line : matrix) { for (double column : line) { sb.append(column).append(", "); } sb.append('\n'); } sb.append(']'); System.out.println(sb.toString()); } }