0
what enum means
2 odpowiedzi
+ 3
Enums is a special collection of constants. for example
enum Fruits {
MANGO,
CASHEW,
APPLE
}
it has alot of practical applications. an example is checking the presence of one constant if it's in the group. you can use switch for this. e. g.
switch (Fruits) {
case MANGO: System.out.println("Mango is a fruit");
}
0
good