In your errorDescription()
function, just simply add the word "bye
" inside the double quotes of your return string
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.