프로그래머스 - 2016년

차관호·2023년 8월 17일

문제링크 - 프로그래머스 - 2016년

import java.time.LocalDate;
class Solution {
    public String solution(int a, int b) {
        LocalDate date = LocalDate.of(2016,a,b);
       return date.getDayOfWeek().toString().substring(0,3);
    }
}
profile
안녕하세요 :-)

1개의 댓글

comment-user-thumbnail
2023년 8월 17일

좋은 글 감사합니다. 자주 올게요 :)

답글 달기