private static int[] createIntArray(int size,int initialValue){
  int[] array=new int[size];
  for (int i=0; i < size; ++i) {
    array[i]=initialValue;
  }
  return array;
}

private static int [ ] createIntArray ( int size , int initialValue ) { int [ ] array = new int [ size ] ; for ( int i = 0 ; i < size ; ++ i ) { array [ i ] = initialValue ; } return array ; }
create an array whose elements have the given initial value .
