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
sam.pople
Zoo Application
Commits
472df628
Commit
472df628
authored
Jun 05, 2022
by
sam.pople
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update
parent
273755cc
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
1 deletion
+12
-1
App.class
bin/App.class
+0
-0
App.java
src/App.java
+12
-1
No files found.
bin/App.class
View file @
472df628
No preview for this file type
src/App.java
View file @
472df628
...
...
@@ -2,7 +2,6 @@ import java.util.ArrayList;
import
java.util.Scanner
;
public
class
App
{
public
static
void
app
(
String
[]
args
)
{
Scanner
sc
=
new
Scanner
(
System
.
in
);
ArrayList
<
Animals
>
Animals
=
new
ArrayList
<
Animals
>();
// Mammals
...
...
@@ -70,5 +69,17 @@ public class App {
Clownfish
.
Environment
=
new
Marine
(
"Sheltered reefs"
,
"They live in anemones in warm reefs"
,
"Pacific Ocean"
,
24
,
3
);
Animals
.
add
(
Clownfish
);
Scanner
sc
=
new
Scanner
(
System
.
in
);
System
.
out
.
print
(
"Enter code:"
);
String
str
=
sc
.
next
();
if
(
str
==
"999"
){
System
.
out
.
println
(
"Animals: "
);
for
(
int
i
=
0
;
i
<
Animals
.
size
();
i
++)
{
System
.
out
.
println
(
Animals
.
get
(
i
));
}
}
}
}
\ No newline at end of file
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