How do I get name of enum constant?
Category: fundamental, viewed: 734 time(s).
This example demonstrate how to user enum's name() method to get enum constant name exactly as declared in the enum declaration.
Our program result:
IDLE Process Status: IDLE RUNNING Process Status: RUNNING FAILED Process Status: FAILED DONE Process Status: DONE
Can't find what you are looking for? Join our FORUMS and ask some questions!
Download Hundreds of Complimentary Industry Resources
Get hundreds of popular Industry magazines, white papers, webinars, podcasts, and more;
all available at no cost to you. With more than 600 complimentary offers, you'll find
plenty of titles to suit your professional interests and needs.
Click Here and Sign up today!
