diff options
Diffstat (limited to 'src/Q10/TrainTimeTable.java')
| -rw-r--r-- | src/Q10/TrainTimeTable.java | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/src/Q10/TrainTimeTable.java b/src/Q10/TrainTimeTable.java index 8c16ac8..201f7d2 100644 --- a/src/Q10/TrainTimeTable.java +++ b/src/Q10/TrainTimeTable.java @@ -19,7 +19,10 @@ public class TrainTimeTable { this(new LinkedList<Station>()); } - /** An overloaded constructor to allow injections of each of the stations in the schedule. */ + /** + * An overloaded constructor to allow injections of each of the stations in the schedule. + * @param schedule the list of stations + * */ public TrainTimeTable(LinkedList<Station> schedule) { this.schedule = schedule; } @@ -49,6 +52,7 @@ public class TrainTimeTable { /** * An overload of displaySchedule that accepts a PrintStream to write output to different * printers. + * @param out the output stream to write to */ public void displaySchedule(PrintStream out) { out.println(String.format("%15s | %7s | %9s | %3s", "Station", "Arrival", "Departure", "Day")); @@ -72,7 +76,10 @@ public class TrainTimeTable { return null; } - /** This is the main entry point to the console application. */ + /** + * This is the main entry point to the console application. + * @param args the argument vector to passed to the program. + * */ public static void main(String[] args) { System.out.println("=== Question 10 ==="); LinkedList<Station> stations = |
