Finding Means

Write a class named MeanFinder whose main method prompts the user to type in some number of decimal values separated by spaces and then displays the mean value of the numbers entered.

Sample run:

This program will find the mean of a set of decimal values.
Enter the values for which you wish to find the mean (separated by spaces): 1 3 5.6 7.89
The mean of the values entered is 4.3725

Tags: java.util.Scanner, do-while loop