3 ms·Why did you need string-switching? You could have created a Map<String, Integer> lookup table.by jganetsk 15y agoWhy did you need string-switching? You could have created a Map<String, Integer> lookup table.