CodeGym /Courses /Java Collections /Tasks | Level 10 | Lesson 10

Tasks | Level 10 | Lesson 10

Java Collections
Level 10 , Lesson 10
Available
20
Task
Java Collections, level 10, lesson 10
Locked
Working with Java 8's DateTime API
Complete this task using Java 8's DateTime API. Implement the printDate(String date) method. It must accept a date as an argument (in one of 3 formats).
20
Task
Java Collections, level 10, lesson 10
Locked
Working with Java 8's DateTime API
Complete this task using Java 8's DateTime API. Implement the printDate(String date) method. It must accept a date as an argument (in one of 3 formats).
10
Task
Java Collections, level 10, lesson 10
Locked
Buon Compleanno!
Implement the getWeekdayOfBirthday method. The method must return the day of the week for a birthday in a given year (past, present, or future), in Italian. See the main method for example date formats.
10
Task
Java Collections, level 10, lesson 10
Locked
Useful methods of the DateTime API
Java 8's DateTime API implements many classes and methods that greatly simplify working with dates and times. Let's implement a few simple methods to get to know them better. 1) The isLeap method must accept a date and return true if the year is a leap year, otherwise it must return false.
Comments (8)
TO VIEW ALL COMMENTS OR TO MAKE A COMMENT,
GO TO FULL VERSION
Juan Ma Level 41, Arauca, Colombia
9 July 2020
In Task 2 output there are some kinds of bugs: 1)... Day of the week: -> it should be: Day of the week: 1 AM or PM: PM -> it should be: AM or PM: AM 2)... Week of the month: b -> it should be: Week of the month: 4
matemate123 Level 50, Kraków, Poland
24 December 2023
Yes, very untidy conditions.
fzw Level 41, West University Place, United States
16 May 2020
Task 3: pattern of DateTimeFormatter should be "d.M.yyyy", "d.MM.yyyy" will not pass validation.
fzw Level 41, West University Place, United States
16 May 2020
Task 2: to get "Week of the month" and "Week of the year", do not use "ALIGNED_WEEK_OF_MONTH" and "ALIGNED_WEEK_OF_YEAR" in enum ChronoField, use class WeekFields instead.
Senned Level 41, Azov, Russia
23 January 2020
In second task paragraph "the output must be:" is incorrect. Administration pls correct this.
Olek Level 41, Amsterdam, Netherlands
5 February 2020
Dear administratorrs, please check requirements. For example, it should be Date instead of Day.
Regina Level 47, Florida, United States
6 February 2020
Hi! We'll check and revise the requirements.
Pavlo Plynko Level 41, Orlando, USA
7 February 2020
If you will write:

System.out.println("Date: " + ...
validator will not accept this. So, condition says to write "Day:", and validator accept "Day:" only. It seems ok.