How to create and use Array in Java?
Write program to construct and use the array.
You can initialize the int array in following way:
int num = new int;
Above example code initializes an array with a capacity of 10. After initializing the array you can store data like this:
You can read complete example at Array in Java.