2D Array in Java

In this tutorial you will learn about 2D array in Java. If you don’t know about what is array then I would recommend you to read the previous tutorial: Array in Java (1D) 2D Array in Java Array is a collection of similar type of elements. Array can be of any dimension but generally we …

2D Array in Java Read More »

Anonymous Array in Java

An array without name is known as anonymous array in java.  As the array do not have any name so it can be used only once.  Anonymous array is passed as an argument of method.  Anonymous array is created and initialized in the same line. How to Create Anonymous Array in Java? A sample program …

Anonymous Array in Java Read More »