Lost Password?

Go Back   CodeCall Programming Forum > Software Development > Java Help

Unregistered, Check out the Coder Battles in the Announcement and Game forums.

Java Help Java Help forum discussing all Java platforms - J2ME, J2SE and J2EE - as well as relevant standards, APIs and frameworks such as Swing, Servlets, JSPs, Applets, Struts, Spring, Hibernate, ANT, EJB, and other Java-related topics.

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 11-20-2007, 10:08 AM
Jude Jude is offline
Newbie
 
Join Date: Nov 2007
Posts: 1
Credits: 3
Rep Power: 0
Jude is on a distinguished road
Red face Beginners calendar exercise

I am an absolute beginner and need alot of help.
I have been set a task to display a calendar for any given month and year.
I made a start with a book but I cant get what I need from it.

So far I have used GregorianCalendar and I can display a calendar. I first thought it was todays date but it isn't it seems to be a random month and year. I need to be able to input a given month and year, and then display that.

I keep doing so much wrong with this I need alot of guidence but any help or advice would be appreciated. Thanks.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

Sponsored Links
  #2 (permalink)  
Old 11-20-2007, 01:46 PM
John's Avatar   
John John is offline
Co-Administrator
 
Join Date: Jul 2006
Age: 20
Posts: 3,238
Last Blog:
Passwords
Credits: 881
Rep Power: 20
John has much to be proud ofJohn has much to be proud ofJohn has much to be proud ofJohn has much to be proud ofJohn has much to be proud ofJohn has much to be proud ofJohn has much to be proud ofJohn has much to be proud ofJohn has much to be proud of
Send a message via AIM to John Send a message via MSN to John
Default

Have you looked at the JavaDoc's for this class? GregorianCalendar (Java 2 Platform SE v1.4.2)

If you can ask a more specific question, I will be able to give you more guidance.
__________________
CodeCall Blog | CodeCall Wiki | Shareware | Linux Forum | My Blog
Chat with other CodeCall members on IRC; connect to irc.codecall.net and join #codecall
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 09-07-2008, 09:55 AM
gamers2000 gamers2000 is offline
Newbie
 
Join Date: Dec 2007
Posts: 2
Credits: 4
Rep Power: 0
gamers2000 is on a distinguished road
Default Re: Beginners calendar exercise

Sorry, what is it that you need help with?

Creating a GregorianCalendar with a given month and year?

If that is the case, the API shows the one constructor of GregorianCalendar as
GregorianCalendar(int year, int month, int date)

So, all you have to do is simply create a GregorianCalendar, passing in the year,month and if not needed, any date.

I suppose you know how to handle user input?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Beginners Guide To PHP: *Tutorial* renlok PHP Tutorials 3 04-22-2008 03:20 PM
Forums for photoshop design and designers .. also for beginners? navjeet Computer Software/OS 0 08-21-2007 12:29 AM
Problem with an exercise?? A.N.H Java Help 2 04-29-2007 01:01 PM
A site for beginners in the Technology Field littlefranciscan Technology Ramble 2 01-16-2007 07:52 AM
Google Calendar Crane Technology Ramble 2 05-30-2006 10:08 AM


All times are GMT -5. The time now is 07:07 PM.

Contest Stats

Xav ........ 1333.07
MeTh0Dz|Reb0rn ........ 1055.7
John ........ 881.37
morefood2001 ........ 879.43
marwex89 ........ 869.98
WingedPanther ........ 851.68
Brandon W ........ 757.44
chili5 ........ 312.39
Steve.L ........ 247.05
dcs ........ 217.87

Contest Rules

CodeCall Goal

Goal: 100,000 Posts
Complete: 82%

Ads