package leetcode;

import java.time.LocalDate;

/**
 * https://leetcode.com/problems/day-of-the-year/
 */
public class Problem1154 {
    public int dayOfYear(String date) {
        LocalDate localDate = LocalDate.parse(date);
        return localDate.getDayOfYear();
    }

    public static void main(String[] args) {
        Problem1154 prob = new Problem1154();
        System.out.println(prob.dayOfYear("2019-01-09")); // 9
        System.out.println(prob.dayOfYear("2019-02-10")); // 41
        System.out.println(prob.dayOfYear("2003-03-01")); // 60
        System.out.println(prob.dayOfYear("2004-03-01")); // 61
    }
}

@@ -170,61 +170,8 @@
 ) %7B%0A
-        LocalDate localDate = LocalDate.parse(date);%0A
     
@@ -181,17 +181,17 @@
  return 
-l
+L
 ocalDate
@@ -191,16 +191,28 @@
 calDate.
+parse(date).
 getDayOf
@@ -222,361 +222,8 @@
 r();
-%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   

Update problem 1154