java print last element of array code example
Example: find last element in array in java
firstNum = numbers.get(0);
lastNum = numbers.get(numbers.size() - 1);
firstNum = numbers.get(0);
lastNum = numbers.get(numbers.size() - 1);