- So far we've only reviewed one-dimensional arrays,…but it is possible to have a multidimensional array.…Here is an example of an array called "rents"…that has four rows and three columns.…The array is initialized with values for three months:…January, February, and March.…Let's look a the syntax for a multidimensional array.…On line 14, you see we have the data type int…with two sets of square brackets.…That's because this array has two dimensions.…The name of it is "rents" and it's equal to,…I started out with some values.…
Notice, I used an open-curly bracket…and then I have a second open-curly bracket…that includes the first three values for the first row,…and then a closed-curly bracket and a comma.…I'm still inside of my initializer list at this point.…Line 15 represents row 2, where I have three more values…enclosed in curly brakets.…Line 16 is row 3 and line 17 and row 4.…Line 18 I'm using to print out the titles…of each of the columns: January, February, March.…
Then I'm using a nested "for loop"…to be able to print out the rents.…
- Getting started with parsing
- Reviewing data types
- Using decisions
- Creating user-defined methods
- Command-line debugging
- Exploring the Java API
- Creating and instantiating classes
- Working with interfaces
- Storing items with arrays
Skill Level Intermediate
Q: How can I make my debugger function like the author’s?
1. Command Level Programming
2. Basics Review
4. Java API
5. Simulations and Algorithm Analysis
6. Classes and Objects
7. More on Classes
8. Data Structures
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.