Store 2 in each array is only an example. My ultimate goal is to read an extremely large text file and store parts of the file into different array so I can sort each individually and then merge.
With Scanner I have tried that, I have tried doing this
int j = 0;
Scanner scanner = new Scanner(in);
store[j] = scanner.next();
B would be the number of times I have to run thru this to store all my items. So it would be the total number of element in my file divided by the number of elements i want in each file.
But when I did this and ran it. It only store the first two elements in my file and dont seem to read the others.