5. Arrays and ArrayList
An array has a fixed size and positions start at 0. For a list that grows, use ArrayList from java.util, which has add and get methods.
Show example
int[] nums = {4, 8, 15};
System.out.println(nums[0]);
Results
Nothing found. Try another word.
An array has a fixed size and positions start at 0. For a list that grows, use ArrayList from java.util, which has add and get methods.
int[] nums = {4, 8, 15};
System.out.println(nums[0]);