How can I sum only the first and the last item in an array list?
ex.: list = (300, 450, 150, 800, ...)
Sandro_1
0
Newbie Poster
Recommended Answers
Jump to PostarrayList.get(0) + arrayList.get(arrayList.size() -1)
All 4 Replies
Slavi
94
Master Poster
Featured Poster
Schol-R-LEA
1,446
Commie Mutant Traitor
Featured Poster
Sandro_1
0
Newbie Poster
Schol-R-LEA
1,446
Commie Mutant Traitor
Featured Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.