Arrays in Java Programming



This video tutorial explains the Arrays in java programming.

You will learn what are arrays, how to create an array, what is the use of an array, what is the syntax of creating an array, how to store values in an array, how to access values from them in detail withe example.

Source code for this video tutorial

package learningJava;

public class Mango {

 public static void main(String[] args) {
  
  
  int marks[];
  marks = new int[6];
  
  //String[] girfriends = new String[5];
  
  marks[0] = 55;
  marks[1] = 35;
  marks[2] = 45;
  marks[3] = 65;
  marks[4] = 57;
  marks[5] = 5;
  
  System.out.println(marks[5]);
  

 }

}


Back To Top