More on 2 Dimensional Arrays in Java Programming

This video 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 Apples {

 public static void main(String[] args) {
  int studentsmarks[][] = {
    {22,55,77},
    {33,66,99},
    {66,55,44}
    };
  
  for(int row = 0; row < studentsmarks.length; row ++){
   for(int column = 0; column < studentsmarks[row].length; column++){
    System.out.print(studentsmarks[row][column]+"\t");
   }
   System.out.println();
   
  }
  
 }

}

Back To Top