2: More Arrays, More Control Structures, More Files#

cake cut into a 2D array

Ahh[1]…more of everything good! In this chapter, we’ll revisit arrays and see how multi-dimensional arrays are just more of the same thing: arrays of arrays or arrays of arrays of arrays. We will see how to move around in multi-dimensional arrays.

Organization is the key to good computing. We will look at using multiple files to help with this issue, and this is the start of our understanding of object-oriented programming.

We have seen how to produce output with System.out.println. Now we will see how to get input from a user to increase our knowledge of Java’s Input/Output (IO).