package com.scarytom;

import java.util.Arrays;

public class MatrixTools {

	public static String printout(final int[][] matrix) {
		StringBuilder sb = new StringBuilder();
		for (int i = 0; i < matrix.length; i++) {
			for (int j = 0; j < matrix[i].length; j++) {
				sb.append(matrix[i][j]).append(' ');
			}
			sb.append('\n');
		}
		return sb.toString();
	}

	public static boolean equals(final int[][] previous, final int[][] current) {
		return Arrays.deepEquals(previous, current);
	}
}

@@ -70,17 +70,20 @@
 ools %7B%0A%0A
-%09
+    
 public s
@@ -128,18 +128,24 @@
 trix) %7B%0A
-%09%09
+        
 StringBu
@@ -176,18 +176,24 @@
 lder();%0A
-%09%09
+        
 for (int
@@ -226,19 +226,28 @@
  i++) %7B%0A
-%09%09%09
+            
 for (int
@@ -287,12 +287,24 @@
 ) %7B%0A
-%09%09%09%09
+                
 sb.a
@@ -340,66 +340,461 @@
 ');%0A
-%09%09%09%7D%0A%09%09%09sb.append('%5Cn');%0A%09%09%7D%0A%09%09return sb.toString();%0A%09%7D%0A%0A%09
+            %7D%0A            sb.append('%5Cn');%0A        %7D%0A        return sb.toString();%0A    %7D%0A%0A    public static String printout(final double%5B%5D%5B%5D matrix) %7B%0A        StringBuilder sb = new StringBuilder();%0A        for (int i = 0; i %3C matrix.length; i++) %7B%0A            for (int j = 0; j %3C matrix%5Bi%5D.length; j++) %7B%0A                sb.append(matrix%5Bi%5D%5Bj%5D).append(' ');%0A            %7D%0A            sb.append('%5Cn');%0A        %7D%0A        return sb.toString();%0A    %7D%0A%0A    
 publ
@@ -841,16 +841,28 @@
 revious,
+%0A           
  final i
@@ -883,10 +883,16 @@
 ) %7B%0A
-%09%09
+        
 retu
@@ -936,9 +936,12 @@
 t);%0A
-%09
+    
 %7D%0A%7D%0A

Add printout for double[][]