class Coffee{
enum CoffeeSize{BIG,HUGE,OVERWHELMING}
CoffeeSize size;
}
class CoffeeTest{
public static void main(String[] args)
{
Coffee drink=new Coffee();
drink.size=Coffee.CoffeeSize.BIG;
}
}
Coffee.CoffeeSize.BIG
: i can get CoffeeSize
just using the class name Coffee
. Am I correct when I think the enum type is implicitly static?