View Single Post
Old 11-17-2010, 07:44 AM   PM User | #2
pigpen
Regular Coder

 
Join Date: Dec 2007
Posts: 137
Thanks: 1
Thanked 21 Times in 21 Posts
pigpen is on a distinguished road
In your errorDescription() function, just simply add the word "bye" inside the double quotes of your return string

Code:
return "Error: " + today + " "+ errorDescription() +" bye : AMOUNT : " + amount;
I added the "bye" text inside the double quotes containing " : AMOUNT : " so it looks like " bye : AMOUNT : ".

You can get rid of the System.out.println line and the toString() line. You don't need that.

All you are doing is concatenating literal strings and variables via the "+" operator, so you can type whatever inside the double quotes and they'll show up.
pigpen is offline   Reply With Quote