package cs235.javaskills; public class FileIO { /** * Loads a set of Pair objects stored in the specified file and returns them as a PairSet object. * * @param fileName The name of the file to be loaded * @return a reference to a PairSet object, which has the points that were read in from the file. * If the file cannot be opened or the contents of the file are invalid, null is returned * @throws IllegalArgumentException if fileName is null */ public static PairSet loadPointFile(String fileName) { return null; } /** * Saves a PairSet to a file, in the form specified in the lab write-up. * * @param points The PairSet object containing the Pair objects to be saved to fileName. * @param fileName the name of the file to be saved * @return true if the Pair objects were successfully written to the file, * or false if an error occurred * @throws IllegalArgumentException if points and/or fileName is null */ public static boolean savePointFile(PairSet points, String fileName) { return false; } }