Please enter your email address or userHandle.
Java Calendar class is an abstract class that provides methods for converting date between a specific instant in time and a set of calendar fields such as MONTH, YEAR, HOUR, etc.
Given a date(dd mm yyyy) in form of string. Print the day at the given date.
For example, if the given date is MARCH 17th 2017 print the output as FRIDAY.
Input: First line of input contains a single integer T which denotes the number of test cases. T test cases follows, first and the only line of each test case contains a string S(date).
Output: Corresponding to each test case, print the required output.
17 03 2017
29 11 2021
We strongly recommend solving this problem on your own before viewing its editorial. Do you still want to view the editorial?
Login to access your submissions.
Please choose 'ReadOnlyMode' if you needn't to 'Edit' the problem e.g. viewing OJ's solution, TestCase Files (TCFs), TimeLimit etc.