MatrixFunHouse - } public int getRowTotal(int row) { int...

Info iconThis preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon
// A+ Computer Science  -  www.apluscompsci.com  //Name -  //Date -  //Lab  -  import static java.lang.System.*;  public class MatrixFunHouse  private int[][] mat;  public MatrixFunHouse()  public MatrixFunHouse(int numRows, int numCols)      public void setSize(int numRows, int numCols)    {    }   public void setSpot(int row, int col, int val) 
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Background image of page 2
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: } public int getRowTotal(int row) { int total=0; return total; } public int getTotal() { int total=0; return total; } public String toString() { String output=""; for(int r=0; r<mat.length; r++) { for(int c=0; c<mat[r].length; c++) { output+=" "+mat[r][c]; } output+="\n"; } return output; } }...
View Full Document

This note was uploaded on 01/24/2011 for the course COMP SCI 543 taught by Professor Mark during the Spring '10 term at Brown College.

Page1 / 2

MatrixFunHouse - } public int getRowTotal(int row) { int...

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online