EDIT: Ive written code for the average, but i dont know how to make it so that it also uses ints from my args.length rather than the array
I need to
for 1. the number of integers read in, you can just use length property of array like :
int count = args.length
which gives you no of elements in an array. And 2. to calculate average value : you are doing in correct way.