private static void printMatrix(int[][] matrix){
  Log.v(TAG,"\tprintMap:");
  int m=matrix.length;
  int n=matrix[0].length;
  for (int j=0; j < n; j++) {
    String colY="\t\t";
    for (int i=0; i < m; i++) {
      colY+=String.format("%3d",matrix[i][j]);
    }
    Log.v(TAG,colY);
  }
}

private static void printMatrix ( int [ ] [ ] matrix ) { Log . v ( TAG , "\tprintMap:" ) ; int m = matrix . length ; int n = matrix [ 0 ] . length ; for ( int j = 0 ; j < n ; j ++ ) { String colY = "\t\t" ; for ( int i = 0 ; i < m ; i ++ ) { colY += String . format ( "%3d" , matrix [ i ] [ j ] ) ; } Log . v ( TAG , colY ) ; } }
only used for debugging .
