Results 1 to 8 of 8
  1. #1
    Mustafa Shady is offline Member
    Join Date
    Dec 2011
    Posts
    6
    Rep Power
    0

    Exclamation I Need help: how to make a Calendar using Java !

    Hello guys

    I hope you are doing well,

    I'm a new member and I really need you to help me ...

    I just need a help on how to make a special Calendar by using Java
    but the most important thing is that I want the output to be like this

    I Need help:  how to make a Calendar using Java !-iqpic5bafce72fe.jpg

    and I want to make a constructor that takes a string in the form like “2/12/2011”, or “2-12-2011” or “2-12-2011 5:55:32”
    and it should parse the string and get its values from the string.

    and the last thing that ....
    cal.add(2,”year”) and the result should be 11/12/2013 13:25:55. Adding negative values should change the date to an earlier date, for example cal.add(-2,”year”) should rewind the date/time to two years before


    Thank you very much in advance :)

  2. #2
    Norm's Avatar
    Norm is online now Moderator
    Join Date
    Jun 2008
    Location
    Eastern Florida
    Posts
    17,558
    Rep Power
    25

    Default Re: I Need help: how to make a Calendar using Java !

    Do you have any specific questions or problems?
    Please ask them.

  3. #3
    Mustafa Shady is offline Member
    Join Date
    Dec 2011
    Posts
    6
    Rep Power
    0

    Default Re: I Need help: how to make a Calendar using Java !

    that was my problem ... plz I need help with it /~
    can anyone tell me at least the main Idea of how to write the code !?

  4. #4
    j2me64's Avatar
    j2me64 is offline Senior Member
    Join Date
    Sep 2009
    Location
    Zurich, Switzerland
    Posts
    962
    Rep Power
    6

    Default Re: I Need help: how to make a Calendar using Java !

    post your code you have so far.

  5. #5
    Fubarable's Avatar
    Fubarable is offline Moderator
    Join Date
    Jun 2008
    Posts
    19,316
    Blog Entries
    1
    Rep Power
    26

    Default Re: I Need help: how to make a Calendar using Java !

    Quote Originally Posted by Mustafa Shady View Post
    that was my problem ... plz I need help with it /~
    can anyone tell me at least the main Idea of how to write the code !?
    Still, all you've done is post the assignment, but not any specific answerable question. Please understand that we're more than happy to answer specific questions, but no one is going to do this assignment for you. So tell us, what is the main thing that is confusing you right now? If you have no clue at all, then have a look at these links:

    The Java Tutorials: the Really Big Index
    So, You Need to Write a Program but Don't Know How to Start

  6. #6
    Mustafa Shady is offline Member
    Join Date
    Dec 2011
    Posts
    6
    Rep Power
    0

    Default Re: I Need help: how to make a Calendar using Java !

    post your code you have so far.
    I just created the class and did the getter and setter methods for the day, month and the year + timing ..so far ^_^

    and I'll post it tonight coz I'm using my friend's laptop right now :)

  7. #7
    Mustafa Shady is offline Member
    Join Date
    Dec 2011
    Posts
    6
    Rep Power
    0

    Default Re: I Need help: how to make a Calendar using Java !

    Still, all you've done is post the assignment, but not any specific answerable question. Please understand that we're more than happy to answer specific questions, but no one is going to do this assignment for you. So tell us, what is the main thing that is confusing you right now? If you have no clue at all, then have a look at these links:
    thanx for replying , just be sure of one thing: I'm not using you to do my assignment!

    I just wanna have a sample of calendar java code to see it .. so at least I can know from where to start , coz the head start always confusing me :D !

  8. #8
    Fubarable's Avatar
    Fubarable is offline Moderator
    Join Date
    Jun 2008
    Posts
    19,316
    Blog Entries
    1
    Rep Power
    26

    Default Re: I Need help: how to make a Calendar using Java !

    Quote Originally Posted by Mustafa Shady View Post
    thanx for replying , just be sure of one thing: I'm not using you to do my assignment!
    Good.


    I just wanna have a sample of calendar java code to see it .. so at least I can know from where to start , coz the head start always confusing me :D !
    There is plenty of example code here in this forum and in other similar forums, please help yourself to it. Then later if you have a specific question on your code (not borrowed code, please), we'll be more than happy to try to help you.

Similar Threads

  1. Replies: 4
    Last Post: 09-21-2011, 04:39 PM
  2. Create Calendar with Java
    By neoseeker191 in forum New To Java
    Replies: 4
    Last Post: 10-17-2008, 05:41 AM
  3. Java Calendar Class
    By vasu18 in forum New To Java
    Replies: 1
    Last Post: 12-22-2007, 02:51 AM
  4. Java Calendar Class
    By vasu18 in forum New To Java
    Replies: 0
    Last Post: 12-06-2007, 10:45 AM
  5. Making a Java web calendar
    By toby in forum Enterprise JavaBeans (EJB)
    Replies: 1
    Last Post: 08-07-2007, 06:05 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •