How to convert Enum to String in Java Program

Tutorials Shared by the Internet Community

Advertisements


Synopsis

This tutorial contains quick tip and sample program to convert Enum to String in Java. Converting Enum to String in Java can be done by using name()me

Statistics

  • Total Hits - 27014

  • Total Votes - 99 votes

  • Vote Up - 43 votes

  • Vote Down - 56 votes

  • Domain - javarevisited.blogspot.com

  • Category - JAVA/Core JAVA

  • Submitted By - Javin Paul

  • Submitted on - 2011-12-12 13:30:27

Description

This tutorial contains quick tip and sample program to convert Enum to String in Java. Converting Enum to String in Java can be done by using name()method and Changing String to Enum you can use valueOf method of Enum Class. A great article for beginners in Java5 and shows how versatile enum in Java could be. ...


Site  |   Broken  |   Tweet  |   Facebook  |     |   Save  |   Liked  |   Down

Advertisements