SyntaxFix
Write A Post
Hire A Developer
Questions
If you have a double array named numbers, you can use:
numbers
firstNum = numbers[0]; lastNum = numbers[numbers.length-1];
or with ArrayList
ArrayList
firstNum = numbers.get(0); lastNum = numbers.get(numbers.size() - 1);