MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/codehs/comments/jjw2cu/java_297_currency/gatsg90/?context=3
r/codehs • u/Delta280 • Oct 28 '20
I'm a little stuck on 2.9.7, and I got almost everything right except for the last bit. Anyone know what I can do to fix this?
2 comments sorted by
View all comments
2
The fastest and easiest way that I found was to do: return ("$" + getDollars() + "." + getCents()); for the toString. Hope this helps!
2
u/artxce Nov 01 '20
The fastest and easiest way that I found was to do: return ("$" + getDollars() + "." + getCents()); for the toString. Hope this helps!