Re: Unknown number of inputs
- From: "Andrew Thompson" <andrewthommo@xxxxxxxxx>
- Date: 29 Jan 2007 22:26:50 -0800
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.
.
- Follow-Ups:
- Re: Unknown number of inputs
- From: Randolf Richardson
- Re: Unknown number of inputs
- References:
- Unknown number of inputs
- From: f2prateek
- Unknown number of inputs
- Prev by Date: Unknown number of inputs
- Next by Date: Re: New line in a JTextArea (student learning here)
- Previous by thread: Unknown number of inputs
- Next by thread: Re: Unknown number of inputs
- Index(es):