Java Date and Time | HACKERRANK

Updated: Sep 17

Asked: Anonymously | Category: JAVA


import java.time.LocalDate;

class Result {


public static String findDay(int month, int day, int year) {

LocalDate l=LocalDate.of(year,month,day);

return l.getDayOfWeek().name();


}


}



6 views

Recent Posts

See All

"Believe you can and you're halfway there"