java.util.LocalDate cannot be resolved

why is this giving me an error. pls help
package lab4;
import java.util.LocalDate;

public class lab4 {
public static void main(String[] args) {
LocalDate date = LocalDate.now();
System.out.println(date);
}
}
package lab4;
import java.util.LocalDate;

public class lab4 {
public static void main(String[] args) {
LocalDate date = LocalDate.now();
System.out.println(date);
}
}
2 Replies
JavaBot
JavaBot•2mo ago
⌛ This post has been reserved for your question.
Hey @duhless 🜲! Please use /close or the Close Post button above when your problem is solved. Please remember to follow the help guidelines. This post will be automatically marked as dormant after 300 minutes of inactivity.
TIP: Narrow down your issue to simple and precise questions to maximize the chance that others will reply in here.
JavaBot
JavaBot•2mo ago
Post Closed
This post has been closed by <@734864042442883133>.

Did you find this page helpful?