Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /**
- * FireRouteFinder solves the Firetruck dispatch problem.
- * @author your name here
- */
- public class FireRouteFinder
- {
- /** The name of the file to which output from the main method will be written. */
- public static final String kOutputFilename = "fireroutes.txt";
- /**
- * A driver for the FireRouteFinder that accepts input
- * from a user-specified file and writes the results to <code>kOutputFilename</code>
- * If no arguments are provided, the program terminates.
- * @param args The first argument is the name of
- * a file in the same directory as the program that contains the
- * user input data.
- * @throws IOException if an illegal IO operation is attempted.
- */
- public static void main(String[] args) throws IOException
- /** Find all the routes from the fire station to the fire.
- * @param rdr a Reader for the input data, in the required format
- * @return List the paths that were found, in alphabetical order.
- * @pre destination exists in input and destination > 1
- * @pre maximum number of paths is 99.
- */
- public List<String> findRoutes(Reader rdr)
Advertisement
Add Comment
Please, Sign In to add comment