package org.hwo; import java.util.ArrayList; import java.util.List; public class ObjectTable { private int width; private List rows; public ObjectTable(int width){ this.width = width; this.rows = new ArrayList(); } public ObjectTable(){ this.width = 0; this.rows = new ArrayList(); } public ObjectTable selectColums(int[] columns){ ObjectTable ot = new ObjectTable( columns.length ); for (ObjectSet row: this.rows){ Object[] sv = new Object[ columns.length ]; for (int i=0;i width){ throw new ArrayIndexOutOfBoundsException(); } for (int n=0;n