Menu
Question Index
...

Write a program to identify the week day of the given date.

Input (Date) Output (String)
2013/Jan/18 Friday
2013/Jun/19 Wednesday
2005/Dec/25 Sunday
2001/Jul/7 Saturday
2044/Nov/14 Monday


import java.util.*;
import java.text.*;
class IdentifyTheDayOfTheDate2
{
    public static void main(String s[])
    {
        System.out.println("Day of 2013/Jan/18 is : " + dayOfDate("2013/Jan/18"));

    }


    public static String dayOfDate(String date) {
    String result = null;
    return result;
    }

}

Doubts

Problems

Topic: Locale Class In Java

Read this topic
Take test on this topic

0
Wrong
Score more than 2 points

© meritcampus 2019

All Rights Reserved.

Open In App