FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
Java4Kids_code/PingPong/src/enumSamples/GreetTheDay.java at master · yfain/Java4Kids_code · GitHub
yfain
/
Java4Kids_code
Public
Notifications
You must be signed in to change notification settings
Fork
30
Star
30
Code
Issues
2
Pull requests
0
Actions
Projects
Wiki
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Actions
Projects
Wiki
Security and quality
Insights
Expand file tree
Breadcrumbs
Java4Kids_code
/
PingPong
/
src
/
enumSamples
/
GreetTheDay.java
Copy path
More file actions
More file actions
Latest commit
History
History
History
27 lines (23 loc) · 582 Bytes
Breadcrumbs
Java4Kids_code
/
PingPong
/
src
/
enumSamples
/
GreetTheDay.java
Copy path
File metadata and controls
27 lines (23 loc) · 582 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
package
enumSamples
;
/**
* Created by NewProgrammer on 3/28/15.
*/
public
class
GreetTheDay
{
public
static
void
main
(
String
[]
args
) {
greet
(
Day
.
SATURDAY
);
}
static
void
greet
(
Day
day
){
switch
(
day
) {
case
MONDAY
:
System
.
out
.
println
(
"The week begins"
);
break
;
case
SATURDAY
:
case
SUNDAY
:
System
.
out
.
println
(
"Hello Weekend!"
);
break
;
default
:
System
.
out
.
println
(
"Hello Midweek"
);
break
;
}
}
}
Back
|
FazBrowse Home
|
New Git URL