public String buildTweetMessage(Item i,int q,int p){
  StringBuilder message=new StringBuilder();
  message.append("New offer for ");
  message.append(Grammar.quantityplnoun(q,i.getName(),"a"));
  message.append(" at ");
  message.append(p);
  message.append(" money. ");
  String stats="";
  String description=i.describe();
  int start=description.indexOf("Stats are (");
  if (start > -1) {
    stats=description.substring(start);
  }
  message.append(stats);
  return message.toString();
}

public String buildTweetMessage ( Item i , int q , int p ) { StringBuilder message = new StringBuilder ( ) ; message . append ( "New offer for " ) ; message . append ( Grammar . quantityplnoun ( q , i . getName ( ) , "a" ) ) ; message . append ( " at " ) ; message . append ( p ) ; message . append ( " money. " ) ; String stats = "" ; String description = i . describe ( ) ; int start = description . indexOf ( "Stats are (" ) ; if ( start > - 1 ) { stats = description . substring ( start ) ; } message . append ( stats ) ; return message . toString ( ) ; }
builds the message for the tweet to be posted
