What date corresponds to the
nth day of the year?
The answer depends on whether the year is a leap year or not.
Write a function that will help you determine the date if you know the number of the day in the year, as well as whether the year is a leap year or not.
The function accepts the day number and a boolean value
isLeap as arguments, and returns the corresponding date of the year as a string
Only valid combinations of a day number and
isLeap will be tested.
The solution in Java code
Test cases to validate our solution