재 현
2016년 본문
728x90
import java.time.*;
class Solution {
public String solution(int a, int b) {
return LocalDate.of(2016, a, b).getDayOfWeek().toString().substring(0,3);
}
}
*개념
import java.time.*; // util 아님
LocalDate.of(2016, a, b).getDayOfWeek() // obj반환
728x90
'Coding test' 카테고리의 다른 글
콜라츠 추측 (0) | 2021.06.13 |
---|---|
최대공약수 최소공배수 (0) | 2021.06.13 |
핸드폰 번호 가리기 (0) | 2021.06.13 |
두 개 뽑아서 더하기 (0) | 2021.06.13 |
가운데 글자 가져오기 (0) | 2021.06.13 |