Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Java > Re: an enum question - how to convert enum type to a string?

Reply
Thread Tools

Re: an enum question - how to convert enum type to a string?

 
 
Roedy Green
Guest
Posts: n/a
 
      02-27-2010
On Fri, 26 Feb 2010 08:33:20 -0500, www <(E-Mail Removed)> wrote, quoted
or indirectly quoted someone who said :

>
>In my program, I need to get the string "CarModel" from enum CarModel.
>Is there a way to do it?

see http://mindprod.com/jgloss/enum.html

--
Roedy Green Canadian Mind Products
http://mindprod.com

The major difference between a thing that might go wrong and a thing that cannot possibly go wrong is that when a thing that cannot possibly go wrong goes wrong it usually turns out to be impossible to get at or repair.
~ Douglas Adams (born: 1952-03-11 died: 2001-05-11 at age: 49)
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: How include a large array? Edward A. Falk C Programming 1 04-04-2013 08:07 PM
Re: an enum question - how to convert enum type to a string? Wojtek Java 1 02-27-2010 03:44 AM
Re: an enum question - how to convert enum type to a string? Lew Java 0 02-27-2010 03:40 AM
Re: an enum question - how to convert enum type to a string? Eric Sosman Java 3 02-26-2010 03:36 PM
enum promote to bool type rather than Integer type? FE C++ 6 08-04-2009 03:21 PM



Advertisments