运用switch,用年份算出生肖
代码:public class Test {public static void main(String[] args) { int year = 1996;//输入参数 int temp =(year-4)%12; switch (temp) { case 0: System.out....