Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

iShater

macrumors 604
Original poster
Aug 13, 2002
7,027
470
Chicagoland
Java 5.0:

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? :confused:

Something similar to Integer.parseInt() and others?
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.