![]() |
Help with program that takes in a list of numbers.
I'm taking a Programming Concepts class this semester and the class is based on Java. Right now I'm working on the first part of the second assignment but my code won't run, or perhaps it will run but it doesn't do what I need it to do. Can someone look at my code and tell me what I did wrong? The program is supposed to gain a list of numbers through user input then output the average, max, and min of the list.
You don't have to fix it for me just kind of point me in the right direction. Any help is greatly appreciated. :) :
import java.util.*; |
The input gathered in 1., below, will be overwritten by the input gathered in 2. Get rid of that second input. I didn't look at the code thoroughly, but that stands out.
:
2. next = keyIn.nextDouble(); |
Also, the definition for max:
:
|
All right :) it all makes sense now....
Thank You! |
| All times are GMT -5. The time now is 1:09 AM. |
Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC