I am trying to call a method in a
string buffer Obviously I am doing something wrong but I can't tell. Maybe I have been looking at it to long but any suggestions would gretly be appreciated.
public void processLawn() throws Exception
{
Lawn lawnQuote = new Lawn();
getLawnSize(lawnQuote);
getNumberOfPayments(lawnQuote);
displayPaymentSummary();
System.exit(0);
}
public void displayPaymentSummary() throws Exception
{
StringBuffer sb = new StringBuffer ();
sb.append("Your lot size is ");
sb.append(getLawnSize(lawnQuote);//If i do it this wat I get cannot
//resolver variable lawnQuote and I get void type not allowed here.
//or
sb.append(lawnQuote.getLawnSize());//If i do it this way I get the
//error cannot resolve variable and its calling lawnQuote a variable.
//but lawnQuote is not a variable it is my object. It is instaniated
//in an above method and the above method calls the String Buffer
//method.
sb.append(" and you will be making ");
}
