Search:

Type: Posts; User: NEPALII

Search: Search took 0.16 seconds.

  1. Replies
    10
    Views
    1,444

    [SOLVED] Re: Loading an array from a .txt file

    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++) {
    ...
  2. Replies
    10
    Views
    1,444

    [SOLVED] Re: Loading an array from a .txt file

    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...
  3. Replies
    10
    Views
    1,444

    [SOLVED] Re: Loading an array from a .txt file

    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. :(
  4. Replies
    10
    Views
    1,444

    [SOLVED] Re: Loading an array from a .txt file

    So I have to put Scanner nextInt() in order to read file content? I'm confused.:confused:
  5. Replies
    10
    Views
    1,444

    [SOLVED] Loading an array from a .txt file

    First post I am making here and hopefully it will be a good one.

    I have the following code:


    // File: Array07.java

    /* *********************************************
    The program...
Results 1 to 5 of 5