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
elijah vasquez
zoo application
Commits
aa49aa4c
Commit
aa49aa4c
authored
May 16, 2022
by
elijah vasquez
🦍
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
commits
parent
e638dd70
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
2 deletions
+7
-2
App.java
App.java
+7
-2
main.class
main.class
+0
-0
No files found.
main
.java
→
App
.java
View file @
aa49aa4c
// The Zoo
// The Zoo
import
java.util.ArrayList
;
import
java.util.ArrayList
;
public
class
main
{
public
class
App
{
public
static
void
main
(
String
[]
args
)
throws
Exception
{
public
static
void
app
(
String
[]
args
)
{
ArrayList
<
animal
>
animals
=
new
ArrayList
<
animal
>();
ArrayList
<
animal
>
animals
=
new
ArrayList
<
animal
>();
// *****Bird types*****
// *****Bird types*****
...
@@ -93,5 +93,10 @@ public class main {
...
@@ -93,5 +93,10 @@ public class main {
woodFrog
.
dietType
=
new
Carnivores
(
"Smaller Invertebrates"
);
woodFrog
.
dietType
=
new
Carnivores
(
"Smaller Invertebrates"
);
woodFrog
.
habitat
=
new
Habitat
(
"Tundra"
,
22
);
woodFrog
.
habitat
=
new
Habitat
(
"Tundra"
,
22
);
animals
.
add
(
woodFrog
);
animals
.
add
(
woodFrog
);
System
.
out
.
println
(
"Animal Types: "
);
for
(
int
i
=
0
;
i
<
animals
.
size
();
i
++)
{
System
.
out
.
println
(
animals
.
get
(
i
));
}
}
}
}
}
\ No newline at end of file
main.class
View file @
aa49aa4c
No preview for this file type
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