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 PostSandro_1: If you don't mind me asking, what is it you are trying to accomplish? I'd guess you were calculating the median of the data set, but you didn't specify that the
ArrayList
was sorted; if it isn't, then it is hard to see what you would be getting from …
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.