import static java.lang.System.*; public class SparseArrayTester { public static void main(String[] args) { SparseArray sparse = new SparseArray(); sparse.addEntry(new SparseArrayEntry(1,4,4)); sparse.addEntry(new SparseArrayEntry(2,0,1)); sparse.addEntry(new SparseArrayEntry(3,1,-9)); sparse.addEntry(new SparseArrayEntry(1,1,5)); out.println(sparse.getValueAt(3,1)); out.println(sparse.getValueAt(3,3)); out.println(sparse); sparse.removeColumn(1); out.println("removed column 1"); out.println(sparse); } }