We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
- Prepare
- Java
- Introduction
- Java Date and Time
- Discussions
Java Date and Time
Java Date and Time
Sort by
recency
|
1472 Discussions
|
Please Login in order to post a comment
I couldn't figure out how to solve the problem using the
Calender
class.So I used
LocalDateTime
andDateTimeFormatter
classes instead. This approach appears clearer to me also. Note :- You would also need to importjava.time.LocalDateTime
andjava.time.format.DateTimeFormatter
on the toplevel of the file. This is the code of the method -/* * Complete the 'findDay' function below. * * The function is expected to return a STRING. * The function accepts following parameters: * 1. INTEGER month * 2. INTEGER day * 3. INTEGER year */
Hi i am not able to solve some this problem because they have used built-in functions. So where can i learn these concepts as hackerrank is solving the questions but we need know the basics.