Refactor switch to Enum

JAVING
1 min readJun 15, 2020

--

Do switch statements sound good to you? Trust me better switch to Enum before it destroys your ears ;)

If you survived that, have please look at this comment on how to use “Replace Type Code with Class/Enum” refactoring technique.

--

--

JAVING
JAVING

Written by JAVING

The present continuous form of “to program in Java”.

No responses yet