JAVA_LeetCode 1185_Day of the Week 풀이 import java.time.DayOfWeek; import java.time.LocalDate; class Solution { public String dayOfTheWeek(int day, int month, int year) { String[] week = {"Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday", "Sunday"}; LocalDate date = LocalDate.of(year, month, day); return week[date.getDayOfWeek().getValue() - 1]; } } * 출처 https://leetcode.com/problems/day-of-the-week Day of the Week - LeetCode Can you solve this real interview question? Day of the...
#JAVA
#JAVA_DayoftheWeek
#JAVA_LeetCode1185
#JAVA_LeetCode1185_DayoftheWeek
#LeetCode1185_DayoftheWeek
원문링크 : JAVA_LeetCode 1185_Day of the Week