Skip to main content

2D Array in JAVA


2D arrays in JAVA

In this part of tutorial you will learn
1) What is a 2D array?
2) Why we use 2D arrays?
3) How we use 2D arrays in java programming?
What is a 2D array?
One dimensional array is a linear array, while the two dimensional array is such an array which has the rows as well as columns. The 2 dimensional is an array within an array so the each entry is divided further allowing us more entries to be included. It is a nonlinear array which is has a vertical length and horizontal length as well.
Why we use 2D arrays?
To visualize certain real life things in programming

Add new comment

Code File
File attachments