[java]출생년도, 12간지 , 날짜 출력하기,DateTimeFormater
·
JAVA
System.out.println("태어난 연도를 입력하세요"); Scanner in=new Scanner(System.in); int birthyear =in.nextInt(); String ddi=""; switch(birthyear%12) { case 0 :ddi="원숭이"; break; case 1 :ddi="닭"; break; case 2 :ddi="개"; break; case 3 :ddi="돼지"; break; case 4 :ddi="쥐"; break; case 5 :ddi="소"; break; case 6 :ddi="호랑이"; break; case 7 :ddi="토끼"; break; case 8 :ddi="용"; break; case 9 :ddi="뱀"; break;..