Java getting the Enum name given the Enum Value March 10, 2023 by Tarik You should replace your getEnumNameForValue by a call to the name() method.