- Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathEnumsInJava.java
More file actions
Latest commit
27 lines (22 loc) · 473 Bytes
/
Copy pathEnumsInJava.java
File metadata and controls
27 lines (22 loc) · 473 Bytes
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
publicclassEnumsInJava{
publicstaticvoidmain(String[] args) {
AccountTypetype = AccountType.SAVINGS;
switch(type) {
caseSAVINGS:
{
System.out.println("Your savings account has been created");
}
break;
caseCHECKING:
{
System.out.println("Your checking account has been created");
}
break;
caseFIXED_DEPOSIT:
{
System.out.println("Your fixed deposit account has been created");
}
break;
}
}
}