import java.util.*; public class Test { private static final int CARICO = HashTable.CAPACITA / 2; public static void main(String[] args) throws Exception { List plot = new ArrayList(); int[] lp = new int[CARICO]; HashTable hlp = new HashTable(); int[] qp = new int[CARICO]; HashTable hqp = new HashTable(); int[] dh = new int[CARICO]; HashTable hdh = new HashTable(); for (int i = 0; i < CARICO; i++) { String key = HashUtil.randomKey(); lp[i] = hlp.putLP(key) + (i>0?lp[i-1]:0); qp[i] = hqp.putQP(key) + (i>0?qp[i-1]:0); dh[i] = hdh.putDH(key) + (i>0?dh[i-1]:0); } plot.add(lp); // black plot.add(qp); // red plot.add(dh); // green //System.out.println(hlp); //System.out.println(hqp); //System.out.println(hdh); HashUtil.show(plot); } }