Search:

Type: Posts; User: Dogeatdog6

Search: Search took 0.11 seconds.

  1. Replies
    13
    Views
    3,129

    [SOLVED] Re: Faster Run Time - Scanner(file) and Arrays

    I got it to work. I moved around the EnsureCapacity and messed with it some more. I figured I could do it all in one loop, as far as the last two ArrayLists went, using the size of the first...
  2. Replies
    13
    Views
    3,129

    [SOLVED] Re: Faster Run Time - Scanner(file) and Arrays

    I took out the EnsureCapacities and put them at the end of the looping setup. So now it adds them automatically as it sees fit, and then the number of Strings in each array is hardcoded in, because I...
  3. Replies
    13
    Views
    3,129

    [SOLVED] Re: Faster Run Time - Scanner(file) and Arrays

    It's just three text files. 3kb, 5kb, and 6kb. Each have 646 lines with one(or just a space) word on each line.

    The idea was using the first text file, comparing that to the user entered string to...
  4. Replies
    13
    Views
    3,129

    [SOLVED] Re: Faster Run Time - Scanner(file) and Arrays

    My problem still hasn't been helped. :/ I tried using a BufferedReader, and a FileReader to gain access to the txt file. The run time is still about the same length. Is there any other possibility...
  5. Replies
    13
    Views
    3,129

    [SOLVED] Re: Faster Run Time - Scanner(file) and Arrays

    Sorry, yeah, the run time is what's killing me. I don't see how BufferedReader putting the data in the array would help speed up the process. It would still have the same looping and runtime as...
  6. Replies
    13
    Views
    3,129

    [SOLVED] Faster Run Time - Scanner(file) and Arrays

    I have a working code right now, it does what I want it to do, which is loading text from a txt file and loading it into an arrayList, line by line. Three of them, to be exact. This is remake of the...
Results 1 to 6 of 6