private void grow(){
  int newCap=(entries.length << 1) + 1;
  Object[] newEntries=new Object[newCap];
  System.arraycopy(entries,0,newEntries,0,size);
  entries=newEntries;
}

private void grow ( ) { int newCap = ( entries . length << 1 ) + 1 ; Object [ ] newEntries = new Object [ newCap ] ; System . arraycopy ( entries , 0 , newEntries , 0 , size ) ; entries = newEntries ; }
expands capacity of internal arrays .
