Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
Stewart_Eccleston_COM4005M_zooApplication
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
stewart.eccleston
Stewart_Eccleston_COM4005M_zooApplication
Commits
22a7f180
Commit
22a7f180
authored
May 04, 2021
by
Eky
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
new update
parent
4c41e2a6
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
1 deletion
+7
-1
Main.java
zooApplication/src/zooApplication/Main.java
+7
-1
No files found.
zooApplication/src/zooApplication/Main.java
View file @
22a7f180
...
...
@@ -63,7 +63,8 @@ public class Main
System
.
out
.
println
(
"2: Display all animals in zoo."
);
System
.
out
.
println
(
"3: Display list of animals of specific type."
);
System
.
out
.
println
(
"4: Display food required for list of animals of certain type."
);
System
.
out
.
println
(
"5: Display all animals from a certain environment."
);
System
.
out
.
println
(
"5: Display food required for all animals."
);
System
.
out
.
println
(
"6: Display all animals from a certain environment."
);
System
.
out
.
println
(
"x: Exit."
);
...
...
@@ -93,6 +94,11 @@ public class Main
System
.
out
.
println
(
ysjZoo
.
foodList
(
types
));
}
else
if
(
input
.
equals
(
"5"
))
{
System
.
out
.
println
(
"\n\nFood required for all animals:"
);
System
.
out
.
println
(
ysjZoo
.
foodList
(
zooAnimals
));
}
else
if
(
input
.
equals
(
"6"
))
{
System
.
out
.
println
(
"\n\nPlease enter name of environment (capital letter for name):"
);
name
=
scan
.
next
();
...
...
Write
Preview
Markdown
is supported
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