public class Question {
public static void printCategory(String species) {
String result = "";
switch (species) {
case "cat":
case "dog":
result = "real";
break;
case "dragon":
result = "mythical";
break;
}
System.out.println("The category of " + species + " is " + result);
}
}