You are done with the reading data from file. :) The next step is to actually store the read-in data to a variable in order to do the sort & print out.
Look at your FileLine class, you should have a constructor and class's variables. The constructor is to create an object instance of the class and the variables are for you to store necessary data to be used later (such as sort, print out, etc.).
// Below is an example of how to construct your FileLine class.
// The variable 'ArrayList' may be used if you want, or you can use
// other type of List.
import java.util.ArrayList;
public class FileLine {
String filename;
ArrayList<Integer> numberArray;
// a sample constructor
public Fileline(String str) {
filename = str;
numberArray = new ArrayList<Integer>();
}
// I am not sure about having this method throwing 'Exception'.
// It would be more clear to me that what kind of exception it may throw...
// Anyway, because you could take out the incoming argument,
// you no longer need the 'throws Exception'. You should be able to
// handle the Exception inside the method.
public void readList() {
...
// read in each line and break down to each token
// then push each token onto the ArrayList
...
}
// Sort your 'numberArray' here.
// This method should rearrange your numberArray data.
public void sort() {
}
// Print out your 'numberArray' to the console.
public void printOut() {
}
}
// When you create a constructor like that, your call will be changed.
// In your ReadFileLine class, instead of doing these 2 lines
FileLine doLine = new FileLine();
doLine.readList(fileName);
// change them to
FileLine doLine = new FileLine(filename);
doLine.readList();
doLine.printOut(); // print out what you originally read in
doLine.sort(); // sort it
doLine.printOut(); // print out the result from sorted