Source Code
import java.util.Scanner;
public class arrays {
public static void main(String[] args) {
Scanner input = new Scanner (System.in);
int num[] = new int [5];
int num2[] = new int [5];
int count =0;
System.out.println("Enter 1st array Integer");
for (int i= 0; i < 5;i++ )
{
num[i]=input.nextInt();
count = num[i]+count;
}
System.out.println("Sum of Array is "+count);
}
}