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
|
1410 Discussions
|
Please Login in order to post a comment
SWITCH TO JAVA 8
import java.time.LocalDate;
public static String findDay(int month, int day, int year) {
LocalDate date = LocalDate.of(year, month, day); DayOfWeek dayOfWeek = date.getDayOfWeek(); return dayOfWeek.getDisplayName(TextStyle.FULL,Locale.ENGLISH).toUpperCase(); }
//Completed by editing the written code in java 8
import java.io.; import java.math.; import java.security.; import java.text.; import java.util.; import java.util.concurrent.; import java.util.function.; import java.util.regex.; import java.util.stream.; import static java.util.stream.Collectors.joining; import static java.util.stream.Collectors.toList; import java.time.; class Result {
}
public class Solution { public static void main(String[] args) throws IOException { BufferedReader bufferedReader = new BufferedReader(new InputStreamReader(System.in)); BufferedWriter bufferedWriter = new BufferedWriter(new FileWriter(System.getenv("OUTPUT_PATH")));
}
My working solution
enum Days { SUNDAY, MONDAY, TUESDAY, WEDNESDAY, THURSDAY, FRIDAY, SATURDAY; }
class Result {
}