FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
Java-Programming/Online_Class/Color.java at master · SHembram18/Java-Programming · GitHub
SHembram18
Java-Programming
Repository navigation
Code
Issues
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
Java-Programming
/
Online_Class
/
Color.java
Copy path
More file actions
More file actions
Latest commit
History
History
History
14 lines (10 loc) · 224 Bytes
Breadcrumbs
Java-Programming
/
Online_Class
/
Color.java
Copy path
File metadata and controls
14 lines (10 loc) · 224 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
/*
ENUM as Class DEMONSTRATION PROGRAM IN JAVA
*/
enum
Color
{
RED
,
GREEN
,
BLUE
,
BLACK
,
YELLOW
;
public
static
void
main
(
String
args
[]){
Color
c1
=
Color
.
GREEN
;
System
.
out
.
println
(
"Color is : "
+
c1
);
}
}
Back
|
FazBrowse Home
|
New Git URL