Is there any way to use a single switch statement more than once? In the program I'm writing currently, rainfall figures are read from a file, and I have two methods that are determining which month has the highest/lowest rainfall. I keep a count using these methods and return the count to the main, in which I have a switch written that assigns a month name based on the count it sees. I would like to use the single switch for both the highest and lowest, to get the month name. Is this possible? If my explanation isn't clear enough I will post code.
Thank you.