ش | ی | د | س | چ | پ | ج |
1 | 2 | 3 | 4 | |||
5 | 6 | 7 | 8 | 9 | 10 | 11 |
12 | 13 | 14 | 15 | 16 | 17 | 18 |
19 | 20 | 21 | 22 | 23 | 24 | 25 |
26 | 27 | 28 | 29 | 30 |
How to declare an array object with integers in Java :
public ArrayList<Integer> ArrayName(int[] arr){ ArrayList<Integer> numbers = new ArrayList<>(); } |
* "numbers" is name of array
* ArrayList is call for import java.util.ArrayList;
* <> What is type inside of the array (string or integer)