public String format(short val){
  DecimalFormat df=getShortFormat();
  if (df != null) {
    return df.format(val);
  }
  return Short.toString(val);
}

public String format ( short val ) { DecimalFormat df = getShortFormat ( ) ; if ( df != null ) { return df . format ( val ) ; } return Short . toString ( val ) ; }
formats the given short value .
