public Hashtable(int initialCapacity,float loadFactor){
  if (initialCapacity < 0)   throw new IllegalArgumentException("Illegal Capacity: " + initialCapacity);
  if (loadFactor <= 0 || Float.isNaN(loadFactor))   throw new IllegalArgumentException("Illegal Load: " + loadFactor);
  if (initialCapacity == 0)   initialCapacity=1;
  this.loadFactor=loadFactor;
  table=new Entry<?,?>[initialCapacity];
  threshold=(int)Math.min(initialCapacity * loadFactor,MAX_ARRAY_SIZE + 1);
}

public Hashtable ( int initialCapacity , float loadFactor ) { if ( initialCapacity < 0 ) throw new IllegalArgumentException ( "Illegal Capacity: " + initialCapacity ) ; if ( loadFactor <= 0 || Float . isNaN ( loadFactor ) ) throw new IllegalArgumentException ( "Illegal Load: " + loadFactor ) ; if ( initialCapacity == 0 ) initialCapacity = 1 ; this . loadFactor = loadFactor ; table = new Entry < ? , ? > [ initialCapacity ] ; threshold = ( int ) Math . min ( initialCapacity * loadFactor , MAX_ARRAY_SIZE + 1 ) ; }
constructs a new , empty hashtable with the specified initial capacity and the specified load factor .
