/home/caleb/ASDV-Java/lab8_CalebFontenot/src/main/java/com/calebfontenot/lab8_calebfontenot/Switch1.java

    /*
     * Click nbfs://nbhost/SystemFileSystem/Templates/Licenses/license-default.txt to change this license
     * Click nbfs://nbhost/SystemFileSystem/Templates/Classes/Class.java to edit this template
     */
    package com.calebfontenot.lab8_calebfontenot;

    import java.util.Scanner;

    /**
     *
     * @author caleb
     */
    public class Switch1 {
        public static void main(String[] args) {
            // Create scanner
            Scanner input = new Scanner(System.in);

            System.out.print("Enter a year to tell you a Chinese joke: ");
            int year = input.nextInt();

            switch (year % 12) {
                case 0: System.out.println("monkey"); break;
                case 1: System.out.println("rooster"); break;
                case 2: System.out.println("dog"); break;
                case 3: System.out.println("pig"); break;
                case 4: System.out.println("rat"); break;
                case 5: System.out.println("ox"); break;
                case 6: System.out.println("tiger"); break;
                case 7: System.out.println("rabbit"); break;
                case 8: System.out.println("dragon"); break;
                case 9: System.out.println("snake"); break;
                case 10: System.out.println("horse"); break;
                case 11: System.out.println("sheep"); break;
            }
        }
    }