Download as pptx, pdf, or txt
Download as pptx, pdf, or txt
You are on page 1of 12

Arrays in Java

int[] marks;
marks = new int[5];

int marks[];
marks = new int[5];

int marks[]={126,32,230,21,200};

int marks[]=new int[5] {126,32,230,21,200};


int arrayLength = marks.length;
Accessing the elements of the specified array

You might also like