• 0

[Java] Sum of array elements?


Question

6 answers to this question

Recommended Posts

  • 0

AFAIK there is none, and it would be normal because the java array is designed to hold any kind of object, not just integers or types that can be summed together. If you really need a sum() method for your arrays, just create your own Array class by extending the Java Array class.

This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.