- [Instructor] So far our arrays have been one dimensional,…meaning there's just one column in them.…You can picture this as a grocery list,…just one column, milk, eggs, cheese, and apples.…What if you wanted more than one column?…Effectively, at this point,…you're asking to simulate what you'd find in a spreadsheet.…For this you can use multi-dimensional arrays.…Effectively, this just an array of arrays.…Let's see what this looks like.…I'm going to go ahead and clear out my interactive window,…and I'll clear the screen.…
I'll create a variable called "multi",…which is going to hold my multi-dimensional array,…and I'll set this equal to a new array.…This time we'll use integers…and instead of passing one value in here,…I'll pass in two separated by a comma.…Basically what this is saying,…is I want to create an array consisting of three rows…and in each of those three rows,…I'm going to have four values.…When we initialize it, it's going to look like this.…I press enter here and you can see that it carried…my closing brace down to the next line.…
AuthorBruce Van Horn
- Writing unit tests in C#
- Working with simple and multidimensional arrays
- Managing ordered and unordered data with lists
- Evaluating conditions with if-else statements
- Using OR, AND, and NOT operators
- Building loops
- Debugging and handling exceptions
- Creating the final build of your C# project
Skill Level Beginner
C# Object-Oriented Programming Tips and Trickswith Jesse Freeman58m 39s Intermediate
1. Unit Testing and Test-Driven Development
2. Arrays and Collections
3. Flow Control
4. Exception Handling
5. Getting to Production
Next steps1m 57s
- 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.