You are viewing a single comment's thread. Return to all comments →
import java.io.; import java.util.; import java.text.; import java.math.; import java.util.regex.*;
public class Solution {
public static void main(String[] args) { Scanner in = new Scanner(System.in); String month = in.next(); String day = in.next(); String year = in.next(); String input_date = day + "/" + month + "/" + year; SimpleDateFormat format1 = new SimpleDateFormat("dd/MM/yyyy"); try { DateFormat format2 = new SimpleDateFormat("EEEE"); String final_day = format2.format(format1.parse(input_date)); System.out.println(final_day.toUpperCase()); } catch(Exception e){} }
}
Seems like cookies are disabled on this browser, please enable them to open this website
Java Date and Time
You are viewing a single comment's thread. Return to all comments →
import java.io.; import java.util.; import java.text.; import java.math.; import java.util.regex.*;
public class Solution {
}