Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Paysafe Interns Valentin-Kaloyan
OOP
ventsislav-todorov-oop-chicken-barn-2023
Commits
86d8434d
Commit
86d8434d
authored
1 year ago
by
Ventsislav Todorov
Browse files
Options
Download
Email Patches
Plain Diff
Final changes.
parent
6195828e
main
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/application/constants/ConsoleMessages.java
+0
-4
src/application/constants/ConsoleMessages.java
src/application/helper/FarmManager.java
+0
-9
src/application/helper/FarmManager.java
with
0 additions
and
13 deletions
+0
-13
src/application/constants/ConsoleMessages.java
+
0
-
4
View file @
86d8434d
...
...
@@ -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"
;
}
This diff is collapsed.
Click to expand it.
src/application/helper/FarmManager.java
+
0
-
9
View file @
86d8434d
...
...
@@ -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
());
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment
Menu
Projects
Groups
Snippets
Help