Program to Calculate Sum Of Numbers in Array in Java.

 

Output: