Sorry I didn't say anything. I was able to get the numbers from the .txt into my array. Thank you very much for the help. Here is the code I got:
for(i = 0; i < array07.length; i++) {
...
Type: Posts; User: NEPALII
Sorry I didn't say anything. I was able to get the numbers from the .txt into my array. Thank you very much for the help. Here is the code I got:
for(i = 0; i < array07.length; i++) {
...
Something like this?
Scanner int x = x.next.Int();
Scanner int Array07Data = Array07Data.next.Int();
I used the x as an example. My professor isn't clear on explaining this to me or the rest...
I have no clue on how to get a loop to read integers and assign them into the array. That double for loop, like you said, prints out the array into the program, right? Sorry to annoy you with this. :(
So I have to put Scanner nextInt() in order to read file content? I'm confused.:confused:
First post I am making here and hopefully it will be a good one.
I have the following code:
// File: Array07.java
/* *********************************************
The program...