I am trying to store a previous date in a LocalDate object, but I am not sure how. I have been using my own class until now, but I would like to apply the java.time.LocalDate library. Help?
My code: LocalDate theDate = new LocalDate(theYear, theMonth, theDay);
Error message: LocalDate theDate = new LocalDate(theYear, theMonth, theDay);