public static Short[] toReferenceType(short[] primArr){
  Short[] refArr=new Short[primArr.length];
  for (int i=0; i < primArr.length; i++)   refArr[i]=Short.valueOf(primArr[i]);
  return refArr;
}

public static Short [ ] toReferenceType ( short [ ] primArr ) { Short [ ] refArr = new Short [ primArr . length ] ; for ( int i = 0 ; i < primArr . length ; i ++ ) refArr [ i ] = Short . valueOf ( primArr [ i ] ) ; return refArr ; }
convert a primitive array ( value type ) to object array ( reference type ) .
