/** * Construct. * * @param the name of file containing the answers * @exception thrown when there is no file. */ public BusinessLogic(String fileName) throws Exception { DataSource data = new LocalFileDataSource(fileName); data.loadAnswers(); answers = data.getAnswers(); } /** * Gets all the answers. * * @return all the answer */ public List getAnswers() { return answers; }