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:
[
add
]
[
|
|
...
]