log.error(ex);
System.err.println(ex);
    public void deleteEntries() {        try {            DataInputStream in=new DataInputStream(System.in);            Address local=ht.getLocalAddress();            Set keys;            long start, stop;            System.out.print("Number of entries: ");            System.out.flush();            System.in.skip(System.in.available());            String line=in.readLine();            int num=Integer.parseInt(line);            Object key;            int i=0;            Iterator it=ht.keySet().iterator();            keys=new TreeSet();            while(i++ < num) {                try {                    key=it.next();                    keys.add(key);                }                catch(Exception ex) {                    break;                }            }            start=System.currentTimeMillis();            for(it=keys.iterator(); it.hasNext();) {                key=it.next();                ht.remove(key);            }            stop=System.currentTimeMillis();            double num_per_sec=num / ((stop-start)/1000.0);            System.out.println("\nRemoved " + keys.size() + " elements in " + (stop - start) +                    "ms, size=" + ht.size() + " [" + num_per_sec + " / sec]");        }        catch(Exception ex) {            log.error(ex);        }    }