What you would want to do is loop through all of the array's elements and adding them together, then divide by the amount of elements.
int average = 0;
for (int i = 0; i < pressure.length; i++)...
Type: Posts; User: Brt93yoda
What you would want to do is loop through all of the array's elements and adding them together, then divide by the amount of elements.
int average = 0;
for (int i = 0; i < pressure.length; i++)...