Java Program to sum all the elements in an array.1 min read

Output: