Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
Programming02
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
karl.templeton
Programming02
Commits
85aef6be
Commit
85aef6be
authored
Mar 14, 2022
by
karl.templeton
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
14/03
parent
06c0f3c7
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
19 additions
and
4 deletions
+19
-4
App.class
bin/App.class
+0
-0
App.java
src/App.java
+19
-4
No files found.
bin/App.class
View file @
85aef6be
No preview for this file type
src/App.java
View file @
85aef6be
import
java.util.Scanner
;
public
class
App
{
public
class
App
{
public
static
void
main
(
String
[]
args
)
throws
Exception
{
public
static
void
main
(
String
[]
args
)
throws
Exception
{
System
.
out
.
println
(
"Hello, World!"
);
System
.
out
.
println
(
"Hello, World!"
);
//Intro to the code
System
.
out
.
println
(
"Hello, World!"
);
System
.
out
.
println
(
"Hello and welcome to my Zoo have a look around and enjoy your stay!"
);
System
.
out
.
println
(
"Hello, World!"
);
System
.
out
.
println
(
"Which animals would you like to see first?"
);
//Scanner will take the users input and store it so that the programming knows which animal to see
Scanner
scanner
=
new
Scanner
(
System
.
in
);
String
Species
=
scanner
.
next
();
switch
(
Species
)
{
case
"Mammals"
:
if
(
Species
.
contains
(
"mammals"
))
{
System
.
out
.
println
(
"You are at the mammals sections!"
);
}
}
scanner
.
close
();
}
}
}
}
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