I am refuseing the edit.
Jesse Silverman wrote:Also, please post again to the same thread instead of editing your post . . .
For questions like this, it strikes me that we should likely confirm whether the poster is a student in a course, trying to do something entirely on their own, etc.
If it is the former, we might suggest re-reading their notes or re-watching certain lessons, if it is the latter, we might refer them to the Java Tutorials or other materials.
In this case, it was unclear whether they jumped into trying to code when they should have been doing one of those things, or were just not used to how carefully you need to apply the knowledge you do have towards implementing something, i.e. programming is very intolerant when you don't pay attention to details.
Like many people, I tend towards jumping into showing "Here are three things you got wrong and how to fix them:" mode, but figuring out where they are coming from and what their current requirements are might serve some better.
In particular, the ideal responses for someone who is trying to complete a class assignment versus someone who is in their early steps of "self-taught Java Programmer" might look a bit different.
You showed up just in time for the waffles! And this tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koophttps://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton