The code I have is meant to read in information from accounts.dat, merge sort it, then output the sorted account into a file called lines.out:
Ive completed the bits which i had to fill in and the program complies ok, but doesnt work when i run it Heres the program, any suggestions of what is wrong would be grateful. ----------------------------------------------------
import java.io.*; import java.util.Scanner; public class SortLinkedList {
// Merge lowList and highList into L // while there are items on both lists // compare items at start of the two lists // make temp ref smaller and remove from its list // put item temp refs onto end of list L
As it stands, the code above contains too many errors to compile (including references to classes such as LinearNode and Account1, which you haven't provided).
Until that's sorted, it's not worth anyone's while checking why it won't run.