1 Replies - 329 Views - Last Post: 30 October 2009 - 07:39 PM Rate Topic: -----

#1 madmudz  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 29
  • Joined: 24-October 09

how to run a file which reads and stores integers in array list.

Posted 30 October 2009 - 07:35 PM

how do i go about to do the following with java please help!
Write a program which:

1. Prompts the user for a file name.


2. Reads a series of integers from that file, one integer on each line, storing the integers in an ArrayList.


3.Iterates through the list calculating the average and standard deviation.


4. Prints the average and standard deviation to the screen, together with a message which says either:


That is a widely scattered set of integers(if the STD isgreaterthan 30% or

That is a very cohesive set of integers. Make sure that it is easy for the user to understand what figures he is reading.

For a program which reads from a file and outputs incorrect data.

i have done one how do i go about doing 2 help plz! :angry: pbl get a life boy

Is This A Good Question/Topic? 0
  • +

Replies To: how to run a file which reads and stores integers in array list.

#2 pbl  Icon User is offline

  • There is nothing you can't do with a JTable
  • member icon

Reputation: 8329
  • View blog
  • Posts: 31,857
  • Joined: 06-March 08

Re: how to run a file which reads and stores integers in array list.

Posted 30 October 2009 - 07:39 PM

Duplicated topic closed
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1