How to start and not be overwhelmed

10 Jan 2023 - 11:18 | Version 1 |
Build the program in stages and get it to "work" at each stage before moving on. Suggested stages:
  1. Main components (including public static void main and the two ending }'s). Add in some constants. Compile. Don't move on until it compiles cleanly
  2. Add in code to get the file name from the user. Compile. Use class examples as guides
  3. Add in code to open the file (don't forget the throws exception). Compile and make sure it runs.
  4. Add code to read a number from the file and print it, one at a time. Make sure this works. (Don't worry about the end of lines)
  5. Add code to ask the user to guess the color and count correct guesses. Make sure this works.
  6. Work on dealing with a line at a time (this is via a nested loop). See class examples for some help here.
This site is powered by FoswikiCopyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding Foswiki? Send feedback
This website is using cookies. More info. That's Fine