package leetcode;

public class Problem1154 {
}

@@ -16,33 +16,613 @@
 e;%0A%0A
-public class Problem1154 %7B
+import java.time.LocalDate;%0A%0A/**%0A * https://leetcode.com/problems/day-of-the-year/%0A */%0Apublic class Problem1154 %7B%0A    public int dayOfYear(String date) %7B%0A        LocalDate localDate = LocalDate.parse(date);%0A        return localDate.getDayOfYear();%0A    %7D%0A%0A    public static void main(String%5B%5D args) %7B%0A        Problem1154 prob = new Problem1154();%0A        System.out.println(prob.dayOfYear(%222019-01-09%22)); // 9%0A        System.out.println(prob.dayOfYear(%222019-02-10%22)); // 41%0A        System.out.println(prob.dayOfYear(%222003-03-01%22)); // 60%0A        System.out.println(prob.dayOfYear(%222004-03-01%22)); // 61%0A    %7D
 %0A%7D%0A

Solve problem 1154