[java] Using two values for one switch case statement