Java 5.0:
I have a properties file that has field types defined:
I am parsing that field to convert the strings to the corresponding enum for the following enum definition:
Is there a way to do this?
Something similar to Integer.parseInt() and others?
I have a properties file that has field types defined:
Code:
field_types=CHAR,NUM,CHAR
I am parsing that field to convert the strings to the corresponding enum for the following enum definition:
Code:
enum Field_Type
{
CHAR,
NUM
}
Is there a way to do this?
Something similar to Integer.parseInt() and others?