The java programming starter checklist

You can get a Java program running in ten minutes and still be unable to explain it a week later. This checklist is arranged so that the second thing never happens: each stage only asks you to move on once the thing before it is genuinely automatic, not merely seen once.

Stage one: a working environment

None of this is intellectually interesting, and all of it blocks you if it is wrong. Do it once, carefully, and then stop thinking about it.

  • A JDK installed, and java -version returning a sensible answer in a fresh terminal.
  • One editor or IDE chosen and left alone. Switching tools is a form of procrastination with extra steps.
  • A folder for code, outside any cloud-synced chaos, with one subfolder per exercise set.
  • A way to compile and run from the terminal, even if the IDE does it for you. Knowing what the button does removes a whole category of confusion.

Stage two: the first twenty programs

Write small, finish fast, and keep going. The goal is not elegance; it is mileage. Twenty programs that each print, calculate, or decide something is the right amount of practice before the ideas start to stick.

  • Print a line, then print several lines, then print a formatted number.
  • Store values in variables and do arithmetic with them.
  • Take a decision with if and else, including a nested one.
  • Loop a fixed number of times, then loop while a condition holds, then loop over a list.
  • Write a method that takes an argument and returns a value, then call it twice.
  • Read input, validate it, and print a response.

Stage three: things you should be able to explain out loud

This is the real checkpoint. If you cannot explain a concept in your own words, at a whiteboard or to a friend, you have seen it but you do not have it.

Can you say what a variable’s type prevents? Why an array has a fixed length and an ArrayList does not? What happens when a method changes a parameter versus changing an object it points to? Why a loop sometimes never ends? What a null value is and why it causes trouble? What a compiler error is telling you, in general terms?

If any of those produce a shrug, go back and write three small programs that force the issue. Reading the answer again will not do it.

Stage four: debugging habits

Before you learn any framework, learn what to do when the program breaks. Read the stack trace from the top, find your own file name in it, and look at that line. Print values to see what is actually there instead of what you assumed. Comment out the last change. Learn to use a debugger for one afternoon, even if you rarely use it after.

Stage five: what to leave for later

Build tools, dependency managers, testing frameworks, databases, and web frameworks are all genuinely useful and all premature at the start. Add them when a project needs them, not because a tutorial mentioned them. Classes and objects, on the other hand, are worth learning as soon as you have written a handful of methods and noticed that you keep passing the same three variables around.

Work through this list in order, and by the end you will not be a Java programmer yet. You will be someone who can become one without help.