結果 : write a java program to print the sum of elements of the array