Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Z
Zoo Application
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
oliver.warrilow
Zoo Application
Commits
dc309287
Commit
dc309287
authored
Apr 22, 2020
by
Oliw2
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Runs without errors, missing some features
parent
f426f1d5
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
5 additions
and
10 deletions
+5
-10
Animal.java
src/Animal.java
+0
-5
Bird.java
src/Bird.java
+1
-1
Fish_C.java
src/Fish_C.java
+1
-1
Mammal.java
src/Mammal.java
+1
-1
Reptile.java
src/Reptile.java
+1
-1
everyAnimal.java
src/everyAnimal.java
+1
-1
No files found.
src/Animal.java
View file @
dc309287
...
@@ -72,8 +72,3 @@ public class Animal {
...
@@ -72,8 +72,3 @@ public class Animal {
}
}
}
}
}
}
/*
*
*
*/
src/Bird.java
View file @
dc309287
...
@@ -39,7 +39,7 @@ public class Bird extends Animal {
...
@@ -39,7 +39,7 @@ public class Bird extends Animal {
{
{
System
.
out
.
println
(
"\n-- Owl - info --"
);
System
.
out
.
println
(
"\n-- Owl - info --"
);
System
.
out
.
println
(
"Owls are birds from the order Strigiformes,\n"
System
.
out
.
println
(
"Owls are birds from the order Strigiformes,\n"
+
"which includes over 200 species of mostly solitary and nocturnal birds of prey typified by an upright stance,\n"
+
"which includes over 200 species of mostly solitary and
nocturnal birds of prey typified by an upright stance,\n"
+
"a large, broad head, binocular vision, binaural hearing, sharp talons, and feathers adapted for silent flight."
);
+
"a large, broad head, binocular vision, binaural hearing, sharp talons, and feathers adapted for silent flight."
);
System
.
out
.
println
(
"\n-- Owl - habitat --"
);
System
.
out
.
println
(
"\n-- Owl - habitat --"
);
...
...
src/Fish_C.java
View file @
dc309287
...
@@ -38,7 +38,7 @@ public class Fish_C extends Animal {
...
@@ -38,7 +38,7 @@ public class Fish_C extends Animal {
public
static
void
FightingFishDescription
()
public
static
void
FightingFishDescription
()
{
{
System
.
out
.
println
(
"\n-- Siamese Fighting Fish - info --"
);
System
.
out
.
println
(
"\n-- Siamese Fighting Fish - info --"
);
System
.
out
.
println
(
"The Siamese fighting fish, also known as the betta, is a popular fish in the aquarium trade.\n"
System
.
out
.
println
(
"The Siamese fighting fish, also known as the
betta, is a popular fish in the aquarium trade.\n"
+
"Bettas are a member of the gourami family and are known to be highly territorial.\n"
+
"Bettas are a member of the gourami family and are known to be highly territorial.\n"
+
"Males in particular are prone to high levels of aggression and will attack each other if housed in the same tank."
);
+
"Males in particular are prone to high levels of aggression and will attack each other if housed in the same tank."
);
...
...
src/Mammal.java
View file @
dc309287
...
@@ -44,7 +44,7 @@ public class Mammal extends Animal
...
@@ -44,7 +44,7 @@ public class Mammal extends Animal
+
"It is an apex predator, primarily preying on ungulates such as deer and wild boar.\n"
);
+
"It is an apex predator, primarily preying on ungulates such as deer and wild boar.\n"
);
System
.
out
.
println
(
"-- Tiger - habitat --"
);
System
.
out
.
println
(
"-- Tiger - habitat --"
);
System
.
out
.
println
(
"Tigers occupy a variety of habitats from tropical forests,\n"
System
.
out
.
println
(
"Tigers occupy a variety of habitats from
tropical forests,\n"
+
"evergreen forests, woodlands and mangrove swamps to grasslands,\n"
+
"evergreen forests, woodlands and mangrove swamps to grasslands,\n"
+
"savannah and rocky country."
);
+
"savannah and rocky country."
);
...
...
src/Reptile.java
View file @
dc309287
...
@@ -39,7 +39,7 @@ public class Reptile extends Animal {
...
@@ -39,7 +39,7 @@ public class Reptile extends Animal {
{
{
System
.
out
.
println
(
"\n-- Komodo Dragon - info --"
);
System
.
out
.
println
(
"\n-- Komodo Dragon - info --"
);
System
.
out
.
println
(
"Reaching up to 10 feet in length and more than 300 pounds, Komodo dragons are the heaviest lizards on Earth./n"
System
.
out
.
println
(
"Reaching up to 10 feet in length and more than 300 pounds, Komodo dragons are the heaviest lizards on Earth./n"
+
"They have long, flat heads with rounded snouts, scaly skin, bowed legs, and huge, muscular tails."
);
+
"They have long, flat heads with rounded
snouts, scaly skin, bowed legs, and huge, muscular tails."
);
System
.
out
.
println
(
"-- Komodo Dragon - habitat --"
);
System
.
out
.
println
(
"-- Komodo Dragon - habitat --"
);
System
.
out
.
println
(
"Komodo dragons have thrived in the harsh climate of Indonesia's Lesser Sunda Islands for millions of years.\n"
System
.
out
.
println
(
"Komodo dragons have thrived in the harsh climate of Indonesia's Lesser Sunda Islands for millions of years.\n"
...
...
src/everyAnimal.java
View file @
dc309287
...
@@ -6,7 +6,7 @@ public class everyAnimal extends Animal {
...
@@ -6,7 +6,7 @@ public class everyAnimal extends Animal {
{
{
int
size
=
allAnimals
.
size
();
int
size
=
allAnimals
.
size
();
System
.
out
.
println
(
"\n-- "
+
animal
+
" --"
);
System
.
out
.
println
(
"\n
-- "
+
animal
+
" --"
);
if
(
animal
.
contentEquals
(
"All"
))
if
(
animal
.
contentEquals
(
"All"
))
{
{
for
(
int
i
=
0
;
i
<
size
;
i
++)
for
(
int
i
=
0
;
i
<
size
;
i
++)
...
...
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