understand my error
Carey Brown wrote:What did you input for "price"? The code was looking for a double and says that's not what it found.
Dave Tolls wrote: I'm guessing he didn't get a chance.
Ryan Sr wrote:Also, the names of the methods are supposed to be that way because my teacher said so.(But I agree that the names aren't that great)
Junilu Lacar wrote:The requirement for toString() It does reference an example though so it will help us if you shared that example as well.
I hope the idea is that you override toString() to fulfil what it does in the superclasses: returns a String representation of the object. Not,but,...but you will have to discuss that with your teacher. You display the result of the toString() call like this:-You cannot even get toString() to compile with a return type other than String.
Ryan Sefrio wrote:Here's the instructions . . . .
Norm Radder wrote:Here's a description of the Scanner problem that Dave talked about: https://www.geeksforgeeks.org/why-is-scanner-skipping-nextline-after-use-of-other-next-functions/
It sure was nice of your sister to lend us her car. Let's show our appreciation by sharing this tiny ad:
Devious Experiments for a Truly Passive Greenhouse!https://www.kickstarter.com/projects/paulwheaton/greenhouse-1