Commit 86d8434d authored by Ventsislav Todorov's avatar Ventsislav Todorov
Browse files

Final changes.

parent 6195828e
No related merge requests found
Showing with 0 additions and 13 deletions
+0 -13
......@@ -6,9 +6,5 @@ public final class ConsoleMessages {
public static final String ASK_USER_TO_SAVE_INFORMATION = "Do you want to save the current information about your farm in a file? [Yes or No?]";
public static final String ASK_USER_IF_WANT_TO_CONTINUE = "Do you wish to continue?";
public static final String YES = "Yes";
public static final String NO = "No";
}
......@@ -76,15 +76,6 @@ public class FarmManager implements Printable {
farm.produceEggs(line);
} catch (InvalidWeekTypeException e) {
System.out.println(e.getMessage());
System.out.println(ASK_USER_IF_WANT_TO_CONTINUE);
String answer = scanner.nextLine();
if (NO.equals(answer)) {
return;
} else {
continue;
}
}
System.out.println(farm.printCurrentStatus());
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment