Almost. Your indentations are still a bit wild and instead need to be uniform, so that our brains can understand better the levels of code blocks that the indentations signify. I suggest that you use...
Type: Posts; User: curmudgeon
Almost. Your indentations are still a bit wild and instead need to be uniform, so that our brains can understand better the levels of code blocks that the indentations signify. I suggest that you use...
OK, can you repost your entire DrinksSystem class, but with well-formatted code? I think that the formatting will help us and you see just where the error may be. It looks like these methods are...
Please don't paste an image here. Instead paste the actual text held in the console. Since that's a Windows CMD console, simply right-click it, then click on Select All, and then press <enter>. Your...
And you're still ignoring your exceptions (and our advice that you not do this). I guess fixing this wasn't all that "urgent" after all.
I see two important issues:
Most importantly, you're ignoring your exceptions by having empty catch blocks. At least print the stack trace via e.printStackTrace(). Otherwise what you're doing...
It's somewhat of an intelligence test -- to see if the original poster can follow simple orders. @-)
I suggest that you avoid borrowing code, that instead you write it yourself. Sure it's fine to borrow ideas, but if you don't write it from the ground up, especially at this level, you'll never...