i couldnt understand why i am not getting the correct output for sum of all elements in an array
import java.util.Arrays; import java.util.Scanner; public cl