Java 'int' array examples (declaring, initializing, populating)
Briefly

If you know the desired size of your array, and you'll be adding elements to your array some time later in your code, you can define a Java int array using this syntax:
Depending on your needs you can also create an int array with initial elements like this:
Read at Alvinalexander
[
add
]
[
|
|
]