Here we go. AGAIN. Codegym just introduces a function i have NO IDEA how to use, and it wasn't even shown in the TASK ITSELF! All it gave me was a description of the syntax. WHy.
You have a LocalDate with the variable name date.
Now CG tells you to invoke getDayOfWeek on date -> date.getDayOfWeek();
This returns a DayOfWeek object -> Save the result in such an object.
On this DayOfWeek object you're asked now to invoke the getDisplayName method with the given parameters. This method returns a String. Just return that as your result.
getDayOfWeekgetDisplayName
The why however is beyond my knowledge :)
Level 18 , United States of America, United States
16 May, 11:35
thanks lol
0
This website uses cookies to provide you with personalized service. By using this website, you agree to our use of cookies. If you require more details, please read our Terms and Policy.
date.getDayOfWeek();
This returns a DayOfWeek object -> Save the result in such an object. On this DayOfWeek object you're asked now to invoke the getDisplayName method with the given parameters. This method returns a String. Just return that as your result. getDayOfWeek getDisplayName The why however is beyond my knowledge :)