Introduction to Two Dimensional Arrays in Java Programming

This tutorial made by LearningLad Education explains two dimensional arrays in java programming.
You will learn what are two dimensional arrays, how to create them in java, how to store and retrieve values from a two dimensional arrays in detail with example.



Source code for this video tutorial

package learningJava;

public class Banana {

 public static void main(String[] args) {
  
  int studentsmarks[][];
  studentsmarks = new int[3][3]; 
  
  studentsmarks[0][0] = 22;
  studentsmarks[2][1]  = 96;
  
  System.out.println(studentsmarks[0][0] );
  System.out.println(studentsmarks[2][1] );
  System.out.println(studentsmarks[1][2] );  

 }

}


Back To Top