Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

java enum to string

public enum MyEnum{
	SOMETHING,SOMETHING_ELSE
}
MyEnum enumObject=MyEnum.SOMETHING;
System.out.println(enumObject.toString());
System.out.println(enumObject.name());
 
PREVIOUS NEXT
Tagged: #java #enum #string
ADD COMMENT
Topic
Name
3+9 =