In this section, we will learn how to get an average of array. For this, first of all we have to define a class name "ArrayAverage" that has double type array to contain some values. Now we take a double type data that calculates the average of array (result/nums.length). And finally it will display the result on the command prompt with message by using the System.out.println().
Here is the code of this program
Rs. 20,000 US$ 300
Today: Rs. 10,000 US$150
Course Duration: 30 hrs
Posted on: June 5, 2007 If you enjoyed this post then why not add us on Google+? Add us to your Circles