Enum in java api
Jan 09, · Enum Type in Java. An enum type in Java is a special data type that helps you to define a list of predefined constants which can be accessed using a variable. An enumeration is created using the enum keyword. As example, if you want to declare a enum Author: Anshudeep. Java DayOfWeek enum example program code in eclipse: Java DayOfWeek is an enum representing the 7 days of the week. I am creating a java API for an addressbook Is it a good practice to use Enums in my API? I am using it as follows: public enum AddressType { WORK,HOME } public class AddressBook implements Function{ Map byName = new TreeMap(); public void addNewContact(String name, String address, AddressType addressType) { comienzoweb.com(name, new Details(name,new .
And what, if to us to look at this question from other point of view?
I consider, that you are not right. I can prove it. Write to me in PM, we will talk.
The authoritative answer, curiously...
It agree, it is the remarkable information
In my opinion you are not right. I am assured. I suggest it to discuss. Write to me in PM, we will talk.