Enum with Different Behavior in Java

You sometimes need an enum with different behavior in Java. Consider the following case where you have an employee management application. It displays information about all the company’s employees. In your application settings you want to configure how many fields you want to see. For example you might not care about the employee’s date of … Read more