public String toString(){
  StringBuilder sb=new StringBuilder();
  sb.append("=================== EditRate =====================\n");
  sb.append(String.format("numerator = %d, denominator = %d%n",this.numerator,this.denominator));
  return sb.toString();
}

public String toString ( ) { StringBuilder sb = new StringBuilder ( ) ; sb . append ( "=================== EditRate =====================\n" ) ; sb . append ( String . format ( "numerator = %d, denominator = %d%n" , this . numerator , this . denominator ) ) ; return sb . toString ( ) ; }
a method that returns a string representation of a composition object
