Getting String value from enum in Java

if status is of type Status enum, status.name() will give you its defined name.

Leave a Comment