I'm trying to write a program that says different things based on an integer value. It needs to say one thing if the integer is between 1 and 12, and another if the integer is between 13 and 19, and so on. Here's the code:
Now let's pretend the preceding code is contained within the required class definition and main() method. I know that's not how you write a case statement, but I don't know how to define a range of values without defining an entire array.
Also, how does one use an expression in a case statement? I'm having trouble with that, too.