Welcome to the Java Programming Forums


The professional, friendly Java community. 21,500 members and growing!


The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


>> REGISTER NOW TO START POSTING


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 4 of 4

Thread: can someone please help me understand this question.

  1. #1
    Junior Member
    Join Date
    Sep 2014
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default can someone please help me understand this question.

    Write a program to find the date of the monday which comes after the third friday of the nearest month.
    Input : yyyy,mm,dd,Day
    Output : yyyy,mm,dd,Monday

    Honestly, I don't know how to start...... please help


  2. #2
    Member Ada Lovelace's Avatar
    Join Date
    May 2014
    Location
    South England UK
    Posts
    414
    My Mood
    Angelic
    Thanks
    27
    Thanked 61 Times in 55 Posts

    Default Re: can someone please help me understand this question.

    Welcome to the forum

    Break the problem down into subsets.

    # create a main method
    # read the requested input from the keyboard
    # manually work out on pen and paper what the date would be
    # create a logical expression to represent that

    Wishes Ada xx
    If to Err is human - then programmers are most human of us all.
    "The Analytical Engine offers a new, a vast, and a powerful language . . .
    for the purposes of mankind
    ."
    Augusta Ada Byron, Lady Lovelace (1851)

  3. #3
    Super Moderator Norm's Avatar
    Join Date
    May 2010
    Location
    Eastern Florida
    Posts
    25,042
    Thanks
    63
    Thanked 2,708 Times in 2,658 Posts

    Default Re: can someone please help me understand this question.

    Look at the Calendar class. It has lots of useful methods.
    If you don't understand my answer, don't ignore it, ask a question.

  4. #4
    Junior Member
    Join Date
    Sep 2014
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Re: can someone please help me understand this question.

    Thank you Ada Lovelace and Norm .Yes, Im going through calendar class and trying to program

Similar Threads

  1. Please Help me to understand
    By Theillusion in forum What's Wrong With My Code?
    Replies: 2
    Last Post: January 17th, 2013, 03:09 AM
  2. Please help to Understand x=++x+ + +x+x++
    By rayan2004 in forum What's Wrong With My Code?
    Replies: 8
    Last Post: December 2nd, 2012, 07:47 PM
  3. [SOLVED] Quick Question: Did I understand these directions correctly?
    By msinc210 in forum What's Wrong With My Code?
    Replies: 1
    Last Post: June 3rd, 2012, 03:03 PM
  4. Replies: 0
    Last Post: December 12th, 2011, 03:17 PM
  5. Help me to understand this
    By Madhushan in forum Java Theory & Questions
    Replies: 2
    Last Post: September 10th, 2011, 08:47 AM