Re: Unknown number of inputs



On Jan 30, 5:14 pm, "f2prateek" <f2prat...@xxxxxxxxx> wrote:
I want to make a program to print the average of the numbers entered
by the user,but how do i accept the numbers from the user,if the
number of numbers enetred by him or not known to me??

"Enter a series of numbers, one to a line.
Type 'a' to calculate the average"

public double calculateAverage( double[] allValues ) {
....

If that does not answer your question, it might help
to be more specific.

Andrew T.

.