Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
COM4005M_Jacob_Greenwood
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
jake.greenwood
COM4005M_Jacob_Greenwood
Commits
5446dec9
Commit
5446dec9
authored
May 04, 2021
by
Jacob
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Final ver
parent
ea6edf31
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
21 deletions
+3
-21
zooMain.java
src/zooMain.java
+3
-21
No files found.
src/zooMain.java
View file @
5446dec9
...
@@ -63,10 +63,6 @@ public class zooMain {
...
@@ -63,10 +63,6 @@ public class zooMain {
if
(
tempAns
==
5
)
{
if
(
tempAns
==
5
)
{
habitatAnimal
(
animalList
,
sc
);
habitatAnimal
(
animalList
,
sc
);
}
}
else
{
System
.
out
.
println
(
"That was not a valid option!"
);
}
}
}
}
}
...
@@ -82,10 +78,6 @@ public class zooMain {
...
@@ -82,10 +78,6 @@ public class zooMain {
+
"Habitat: "
+
tempAnimal
.
enviroment
+
"\n"
+
"Habitat: "
+
tempAnimal
.
enviroment
+
"\n"
+
"Description: "
+
tempAnimal
.
description
+
"\n"
);
+
"Description: "
+
tempAnimal
.
description
+
"\n"
);
}
}
else
{
System
.
out
.
println
(
"That was not a valid option!"
);
}
}
}
}
}
...
@@ -104,16 +96,12 @@ public class zooMain {
...
@@ -104,16 +96,12 @@ public class zooMain {
+
"Habitat: "
+
tempAnimal
.
enviroment
+
"\n"
+
"Habitat: "
+
tempAnimal
.
enviroment
+
"\n"
+
"Description: "
+
tempAnimal
.
description
+
"\n"
);
+
"Description: "
+
tempAnimal
.
description
+
"\n"
);
}
}
else
{
System
.
out
.
println
(
"That was not a valid option!"
);
}
}
}
}
}
public
static
void
dietAnimal
(
ArrayList
<
allAnimals
>
animalList
,
Scanner
sc
)
{
public
static
void
dietAnimal
(
ArrayList
<
allAnimals
>
animalList
,
Scanner
sc
)
{
System
.
out
.
println
(
"What type of diet would you like to search for? (Case sensitive) \n"
System
.
out
.
println
(
"What type of diet would you like to search for? (Case sensitive) \n"
+
"Carn
ovi
re\n"
+
"Carn
ivo
re\n"
+
"Herbivore\n"
+
"Herbivore\n"
+
"Omnivore\n\n"
);
+
"Omnivore\n\n"
);
String
tempDiet
=
sc
.
next
();
String
tempDiet
=
sc
.
next
();
...
@@ -126,9 +114,6 @@ public class zooMain {
...
@@ -126,9 +114,6 @@ public class zooMain {
+
"Description: "
+
tempAnimal
.
description
+
"\n"
);
+
"Description: "
+
tempAnimal
.
description
+
"\n"
);
}
}
else
{
System
.
out
.
println
(
"That was not a valid option!"
);
}
}
}
}
}
...
@@ -151,9 +136,6 @@ public class zooMain {
...
@@ -151,9 +136,6 @@ public class zooMain {
+
"Description: "
+
tempAnimal
.
description
+
"\n"
);
+
"Description: "
+
tempAnimal
.
description
+
"\n"
);
}
}
else
{
System
.
out
.
println
(
"That was not a valid option!"
);
}
}
}
}
}
}
}
...
...
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