Check out example codes for "how to make int array java android". It will help you in understanding the concepts better.

Code Example 1

int[] myIntArray = new int[3];
int[] myIntArray = {1, 2, 3};
int[] myIntArray = new int[]{1, 2, 3};

Learn ReactJs, React Native from akashmittal.com