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...
Type: Posts; User: Dogeatdog6
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...
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...
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...
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...
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...
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...