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
jinny.wilkin
Zoo Application
Commits
58dd563b
Commit
58dd563b
authored
May 16, 2022
by
jinny.wilkin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
final2
parent
9a7c7e11
Changes
12
Show whitespace changes
Inline
Side-by-side
Showing
12 changed files
with
12 additions
and
12 deletions
+12
-12
Baboon.java
Baboon.java
+1
-1
Catfish.java
Catfish.java
+1
-1
Chameleon.java
Chameleon.java
+1
-1
Crocodile.java
Crocodile.java
+1
-1
Duck.java
Duck.java
+1
-1
Emu.java
Emu.java
+1
-1
Lion.java
Lion.java
+1
-1
Parrot.java
Parrot.java
+1
-1
PufferFish.java
PufferFish.java
+1
-1
RedPanda.java
RedPanda.java
+1
-1
Shark.java
Shark.java
+1
-1
Turtle.java
Turtle.java
+1
-1
No files found.
Baboon.java
View file @
58dd563b
...
...
@@ -22,7 +22,7 @@ public class Baboon extends Mammal{
System
.
out
.
printf
(
"Name: %s\nHabitat: %s\n Diet: %s\n Age: %d\n Integument: %s\n Gender: %s\n Number of Legs: %d\n Max Speed: %d\n"
,
this
.
name
,
this
.
habitat
,
this
.
food
,
this
.
age
,
this
.
integument
,
this
.
gender
,
this
.
numOfLegs
,
this
.
speed
);
System
.
out
.
printf
(
"Height: %f\nLocomotion: %s\n"
,
this
.
height
,
this
.
locomotion
);
System
.
out
.
printf
(
"Hierarchy: %d
"
,
this
.
hierarchy
);
System
.
out
.
printf
(
"Hierarchy: %d
\nSpecies: %s"
,
this
.
hierarchy
,
this
.
getClass
().
getSimpleName
()
);
}
}
Catfish.java
View file @
58dd563b
...
...
@@ -12,7 +12,7 @@ public class Catfish extends Fish{
System
.
out
.
printf
(
"Name: %s\nHabitat: %s\n Diet: %s\n Age: %d\n Integument: %s\n Gender: %s\n Number of Legs: %d\n Max Speed: %d\n"
,
this
.
name
,
this
.
habitat
,
this
.
food
,
this
.
age
,
this
.
integument
,
this
.
gender
,
this
.
numOfLegs
,
this
.
speed
);
System
.
out
.
printf
(
"Length: %d\nColourings: %s\n"
,
this
.
length
,
this
.
Colourings
);
System
.
out
.
printf
(
"Barbel Length: %f
"
,
this
.
whiskerLength
);
System
.
out
.
printf
(
"Barbel Length: %f
\nSpecies: %s"
,
this
.
whiskerLength
,
this
.
getClass
().
getSimpleName
()
);
}
}
Chameleon.java
View file @
58dd563b
...
...
@@ -17,7 +17,7 @@ public class Chameleon extends Reptile{
System
.
out
.
printf
(
"Name: %s\nHabitat: %s\n Diet: %s\n Age: %d\n Integument: %s\n Gender: %s\n Number of Legs: %d\n Max Speed: %d\n"
,
this
.
name
,
this
.
habitat
,
this
.
food
,
this
.
age
,
this
.
integument
,
this
.
gender
,
this
.
numOfLegs
,
this
.
speed
);
System
.
out
.
printf
(
"Length: %f\nAmphibious: %s\n"
,
this
.
length
,
this
.
amphibious
);
System
.
out
.
printf
(
"Current Colour: %s
"
,
this
.
currentColour
);
System
.
out
.
printf
(
"Current Colour: %s
\nSpecies: %s"
,
this
.
currentColour
,
this
.
getClass
().
getSimpleName
()
);
}
}
Crocodile.java
View file @
58dd563b
...
...
@@ -17,7 +17,7 @@ public class Crocodile extends Reptile{
System
.
out
.
printf
(
"Name: %s\nHabitat: %s\n Diet: %s\n Age: %d\n Integument: %s\n Gender: %s\n Number of Legs: %d\n Max Speed: %d\n"
,
this
.
name
,
this
.
habitat
,
this
.
food
,
this
.
age
,
this
.
integument
,
this
.
gender
,
this
.
numOfLegs
,
this
.
speed
);
System
.
out
.
printf
(
"Length: %f\nAmphibious: %s\n"
,
this
.
length
,
this
.
amphibious
);
System
.
out
.
printf
(
"Number of Teeth: %s
"
,
this
.
numberOfTeeth
);
System
.
out
.
printf
(
"Number of Teeth: %s
\nSpecies: %s"
,
this
.
numberOfTeeth
,
this
.
getClass
().
getSimpleName
()
);
}
}
Duck.java
View file @
58dd563b
...
...
@@ -18,7 +18,7 @@ public class Duck extends Bird{
public
void
getDetails
(){
System
.
out
.
printf
(
"Name: %s\nHabitat: %s\n Diet: %s\n Age: %d\n Integument: %s\n Gender: %s\n Number of Legs: %d\n Max Speed: %d\n"
,
this
.
name
,
this
.
habitat
,
this
.
food
,
this
.
age
,
this
.
integument
,
this
.
gender
,
this
.
numOfLegs
,
this
.
speed
);
System
.
out
.
printf
(
"Wing Span: %f\nPlumage Colour: %s\n
"
,
this
.
wingSpan
,
this
.
featherColour
);
System
.
out
.
printf
(
"Wing Span: %f\nPlumage Colour: %s\n
Species: %s"
,
this
.
wingSpan
,
this
.
featherColour
,
this
.
getClass
().
getSimpleName
()
);
System
.
out
.
printf
(
"Loves: Bread"
);
}
...
...
Emu.java
View file @
58dd563b
...
...
@@ -21,6 +21,6 @@ public class Emu extends Bird{
System
.
out
.
printf
(
"Name: %s\nHabitat: %s\n Diet: %s\n Age: %d\n Integument: %s\n Gender: %s\n Number of Legs: %d\n Max Speed: %d\n"
,
this
.
name
,
this
.
habitat
,
this
.
food
,
this
.
age
,
this
.
integument
,
this
.
gender
,
this
.
numOfLegs
,
this
.
speed
);
System
.
out
.
printf
(
"Wing Span: %f\nPlumage Colour: %s\n"
,
this
.
wingSpan
,
this
.
featherColour
);
System
.
out
.
printf
(
"Running Speed: %d
"
,
this
.
runningSpeed
);
System
.
out
.
printf
(
"Running Speed: %d
\nSpecies: %s"
,
this
.
runningSpeed
,
this
.
getClass
().
getSimpleName
()
);
}
}
Lion.java
View file @
58dd563b
...
...
@@ -17,6 +17,6 @@ public class Lion extends Mammal{
System
.
out
.
printf
(
"Name: %s\nHabitat: %s\n Diet: %s\n Age: %d\n Integument: %s\n Gender: %s\n Number of Legs: %d\n Max Speed: %d\n"
,
this
.
name
,
this
.
habitat
,
this
.
food
,
this
.
age
,
this
.
integument
,
this
.
gender
,
this
.
numOfLegs
,
this
.
speed
);
System
.
out
.
printf
(
"Height: %f\nLocomotion: %s\n"
,
this
.
height
,
this
.
locomotion
);
System
.
out
.
printf
(
"Time Spent Sleeping: %d
"
,
this
.
timeSpentAsleep
);
System
.
out
.
printf
(
"Time Spent Sleeping: %d
\nSpecies: %s"
,
this
.
timeSpentAsleep
,
this
.
getClass
().
getSimpleName
()
);
}
}
Parrot.java
View file @
58dd563b
...
...
@@ -21,7 +21,7 @@ public class Parrot extends Bird{
System
.
out
.
printf
(
"Name: %s\nHabitat: %s\n Diet: %s\n Age: %d\n Integument: %s\n Gender: %s\n Number of Legs: %d\n Max Speed: %d\n"
,
this
.
name
,
this
.
habitat
,
this
.
food
,
this
.
age
,
this
.
integument
,
this
.
gender
,
this
.
numOfLegs
,
this
.
speed
);
System
.
out
.
printf
(
"Wing Span: %f\nPlumage Colour: %s\n"
,
this
.
wingSpan
,
this
.
featherColour
);
System
.
out
.
printf
(
"Volume: %sdb
"
,
this
.
volumeDecibels
);
System
.
out
.
printf
(
"Volume: %sdb
\nSpecies: %s"
,
this
.
volumeDecibels
,
this
.
getClass
().
getSimpleName
()
);
}
}
PufferFish.java
View file @
58dd563b
...
...
@@ -17,6 +17,6 @@ public class PufferFish extends Fish{
System
.
out
.
printf
(
"Name: %s\nHabitat: %s\n Diet: %s\n Age: %d\n Integument: %s\n Gender: %s\n Number of Legs: %d\n Max Speed: %d\n"
,
this
.
name
,
this
.
habitat
,
this
.
food
,
this
.
age
,
this
.
integument
,
this
.
gender
,
this
.
numOfLegs
,
this
.
speed
);
System
.
out
.
printf
(
"Length: %d\nColourings: %s\n"
,
this
.
length
,
this
.
Colourings
);
System
.
out
.
printf
(
"Expanded Radius: %s
"
,
this
.
radiusExpanded
);
System
.
out
.
printf
(
"Expanded Radius: %s
\nSpecies: %s"
,
this
.
radiusExpanded
,
this
.
getClass
().
getSimpleName
()
);
}
}
RedPanda.java
View file @
58dd563b
...
...
@@ -24,6 +24,6 @@ public class RedPanda extends Mammal{
System
.
out
.
printf
(
"Name: %s\nHabitat: %s\n Diet: %s\n Age: %d\n Integument: %s\n Gender: %s\n Number of Legs: %d\n Max Speed: %d\n"
,
this
.
name
,
this
.
habitat
,
this
.
food
,
this
.
age
,
this
.
integument
,
this
.
gender
,
this
.
numOfLegs
,
this
.
speed
);
System
.
out
.
printf
(
"Height: %f\nLocomotion: %s\n"
,
this
.
height
,
this
.
locomotion
);
System
.
out
.
printf
(
"Social Distance: %f
"
,
this
.
homeRange
);
System
.
out
.
printf
(
"Social Distance: %f
\nSpecies: %s"
,
this
.
homeRange
,
this
.
getClass
().
getSimpleName
()
);
}
}
Shark.java
View file @
58dd563b
...
...
@@ -12,6 +12,6 @@ public class Shark extends Fish{
System
.
out
.
printf
(
"Name: %s\nHabitat: %s\n Diet: %s\n Age: %d\n Integument: %s\n Gender: %s\n Number of Legs: %d\n Max Speed: %d\n"
,
this
.
name
,
this
.
habitat
,
this
.
food
,
this
.
age
,
this
.
integument
,
this
.
gender
,
this
.
numOfLegs
,
this
.
speed
);
System
.
out
.
printf
(
"Length: %d\nColourings: %s\n"
,
this
.
length
,
this
.
Colourings
);
System
.
out
.
printf
(
"Number of Teeth: %d
"
,
this
.
teeth
);
System
.
out
.
printf
(
"Number of Teeth: %d
\nSpecies: %s"
,
this
.
teeth
,
this
.
getClass
().
getSimpleName
()
);
}
}
Turtle.java
View file @
58dd563b
...
...
@@ -17,6 +17,6 @@ public class Turtle extends Reptile{
System
.
out
.
printf
(
"Name: %s\nHabitat: %s\n Diet: %s\n Age: %d\n Integument: %s\n Gender: %s\n Number of Legs: %d\n Max Speed: %d\n"
,
this
.
name
,
this
.
habitat
,
this
.
food
,
this
.
age
,
this
.
integument
,
this
.
gender
,
this
.
numOfLegs
,
this
.
speed
);
System
.
out
.
printf
(
"Length: %f\nAmphibious: %s\n"
,
this
.
length
,
this
.
amphibious
);
System
.
out
.
printf
(
"Shell Pattern: %s
"
,
this
.
shellPattern
);
System
.
out
.
printf
(
"Shell Pattern: %s
\nSpecies: %s"
,
this
.
shellPattern
,
this
.
getClass
().
getSimpleName
()
);
}
}
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