import java.util.Scanner;
public class MySweetProgram {//class has member
public static void main(String[] args) {//main method
Scanner scanner = new Scanner (System.in);
System.out.println("How old are you");
int age = scanner.nextInt();
System.out.println("Cats or Dogs");
String animal = scanner.nextLine();
//changing this String animal = scanner.next();
//allows me input the answer for cats and dogs
if (age > 1 && "Cats".equals(animal)) {
System.out.println("Welcome");
}
}
}