Creating an array with a text document
Author |
Message |
IntelMaster
|
Posted: Tue May 25, 2010 5:50 pm Post subject: Creating an array with a text document |
|
|
Hi,
I want to take the numbers from a text document and make an array out of it, but for some reason my program is not working. After gathering the arrays I want to calculate the median for the numbers. Here is my program so far:
|
|
|
|
|
![](images/spacer.gif) |
Sponsor Sponsor
![Sponsor Sponsor](templates/subSilver/images/ranks/stars_rank5.gif)
|
|
![](images/spacer.gif) |
Insectoid
![](http://compsci.ca/v3/uploads/user_avatars/13760332514cbd0ce972eaa.jpg)
|
Posted: Tue May 25, 2010 6:04 pm Post subject: RE:Creating an array with a text document |
|
|
Make sure your file is really 'numbers.txt' and not 'numbers.txt.txt'. Happens a lot (to me). Damn you Windows, I'll type my own extensions!
Other than that, I can't think of what's wrong (due in no small part to my inability to read Java without my head exploding). |
|
|
|
|
![](images/spacer.gif) |
DemonWasp
|
Posted: Tue May 25, 2010 6:49 pm Post subject: RE:Creating an array with a text document |
|
|
@Insectoid: you can force Windows Explorer to always show extensions. This is one of the first things I do whenever I set up Windows, because foobar.bmp.jpeg has always been a stupid, irritating problem. |
|
|
|
|
![](images/spacer.gif) |
|
|