import java.util.*; import java.io.*; public class HeapSort { public static void main(String[] args) throws IOException { Scanner sc = new Scanner(new File(args[0])); ArrayList data = new ArrayList(); while (sc.hasNext()) data.add(sc.next()); } } // // takes a filename from the command line // and outputs that file sorted, one word per line //