how to take integer list in java code example
Example 1: int list in java
List<Integer> list = new ArrayList<Integer>();
Example 2: int list java
int[] list = new int[length];
List<Integer> list = new ArrayList<Integer>();
int[] list = new int[length];