Essentially, I changed the uppercase "S" in Switch to a lower case one. Then, since boolean is not allowed in switches, I had to settle with an integer. I changed the values after "case" from, for example, x>70, to just 70.
Here is a very similar switch statement if this helps at all.
Code:
import java.io.*; import java.util.*;
Leave a comment: