We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
Solution.java:2: error: package java.time does not exist
import java.time.LocalDate;
^
Solution.java:2: error: package java.time does not exist
import java.time.LocalDate;
^
Solution.java:9: error: cannot find symbol
LocalDate date = LocalDate.of(y, m, d);
^
symbol: class LocalDate
location: class Solution
Solution.java:9: error: cannot find symbol
LocalDate date = LocalDate.of(y, m, d);
^
symbol: variable LocalDate
location: class Solution
3 errors
Cookie support is required to access HackerRank
Seems like cookies are disabled on this browser, please enable them to open this website
Java Date and Time
You are viewing a single comment's thread. Return to all comments →
does not work and gives some erro that,
Solution.java:2: error: package java.time does not exist import java.time.LocalDate; ^ Solution.java:2: error: package java.time does not exist import java.time.LocalDate; ^ Solution.java:9: error: cannot find symbol LocalDate date = LocalDate.of(y, m, d); ^ symbol: class LocalDate location: class Solution Solution.java:9: error: cannot find symbol LocalDate date = LocalDate.of(y, m, d); ^ symbol: variable LocalDate location: class Solution 3 errors