public String toString(){
  return String.format("parameter %s of constructor %s",index,factory);
}

public String toString ( ) { return String . format ( "parameter %s of constructor %s" , index , factory ) ; }
this is used to provide a textual representation of the parameter . providing a string describing the parameter is useful for debugging and for exception messages .
