16 Java Fundamentals | Multidimensional Arrays in Java | By Dummy for Dummies
INTRODUCTION: Hey guys welcome back! Remember we made variable of variables? And called it Arrays? Today we are gonna talk about we can even make Array of Arrays, they are called multidimensional Arrays. Think of a 2D array as an array that contain arrays: ⦿ 2D Array → Contains Arrays → Contains variables/data And a 3D array as, array that contain arrays, each of those array contain more arrays. ⦿ 3D Array → Contains 2D Arrays → Contains Arrays → Contains variables/data And so on... 2D ARRAYS Imagine a classroom full of chairs. It does not contain a single line of chairs (1D Array) but rather rows and columns of chairs. Where: ⦿ Row = Line of chair ⦿ Column = Specific chair in that row So to point a specific chair you'd say "Row 3, column 2". That is how exactly you can access data in 2D Arrays. Let's first write the java magical spell for creation of 2D Array ...