public SparseArray(int initialCapacity){
  initialCapacity=idealIntArraySize(initialCapacity);
  mKeys=new int[initialCapacity];
  Arrays.fill(mKeys,-1);
  mValues=new Double[initialCapacity];
  mSize=0;
}

public SparseArray ( int initialCapacity ) { initialCapacity = idealIntArraySize ( initialCapacity ) ; mKeys = new int [ initialCapacity ] ; Arrays . fill ( mKeys , - 1 ) ; mValues = new Double [ initialCapacity ] ; mSize = 0 ; }
creates a new sparsearray containing no mappings that will not require any additional memory allocation to store the specified number of mappings .
