Yeah its part of my assignment, we were supposed to read the values from the input file that would fit into the array, and keep a tally of all the values processed so we could output to the console...
Type: Posts; User: Helplessdrowningpuppy
Yeah its part of my assignment, we were supposed to read the values from the input file that would fit into the array, and keep a tally of all the values processed so we could output to the console...
We run this program twice with different input files, one of length 6 and one of length 19, but we have to use an array size of 15, to get us used to dealing with partially filled arrays. I used the...
I thought it was that but it turned out I had to put something in for the hasNext() clause. I added a trash variable to hold my input for when it didnt fit the if clause and I got it to work.
...
So I'm working on a program that so far
1) reads a set of numbers from an input file, puts them into an array. The array length is a constant number, but the input file (I run the program twice...