You are not storing the input into the array at all. You need to add something like the following to store the user input:
Scanner S=new Scanner(System.in);
int[] arr1=new int [6];
for (int i = 0; i < 6; ++i) {
int g = S.nextInt();
arr1[i] = g;
}
int input=6;
double total=0d;
double mean;
for(int i=0;i
I also changed the mean and total to doubles so that you can get a decimal value for the mean, otherwise it would round down.