import java.io.*; public class IntMatrix { private int [][] matrix; public int [][] getMatrix() { return matrix; } public void setEqualTo( IntMatrix input) { this.matrix = input.getMatrix(); ; } public String toString() { System.out.println("This matrix = ..."); String temp = ""; for(int i = 0; i= 0) adjust = " "; return adjust + Integer.toString(x); } public static int[][] readMatrix(BufferedReader br) throws Exception { // this reads the lines after and up to and including , throwing // the numerical input into an int array to be returned, and ignores the line // so that any subsequent reads will be from the line following String [] bigJunk = new String[10000]; int numLines = 0; for ( String str = br.readLine() ; str!=null && !str.equals("") ; str = br.readLine(), numLines++ ) { bigJunk[numLines] = str; } int [][] tempArray = new int[numLines][]; String [] arrayStr; for(int i = 0; i