Closed Mk-Chan closed 6 years ago
Swapped out the if-else chain for checking input for a loop over a pre-initialized HashMap which has the mapping for each input to output. Simplifies responseToInput() further.
Swapped out the if-else chain for checking input for a loop over a pre-initialized HashMap which has the mapping for each input to output. Simplifies responseToInput() further.