public DisjointSets(int numElements){
  array=new int[numElements];
  Arrays.fill(array,-1);
}

public DisjointSets ( int numElements ) { array = new int [ numElements ] ; Arrays . fill ( array , - 1 ) ; }
construct a disjoint sets object .
