Question: how to calculate average of two numbers in java?
Answer: Collect integer values in an array A of size N., Add all values of A., Divide the output of Step 2 with N.