Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / April 2006

Tip: Looking for answers? Try searching our database.

Calendar Again

Thread view: 
domba - 30 Apr 2006 16:18 GMT
I have a problem in programming JAVA...

Input :
Month :
Year :
The output must be the day name of the first date

Example :
Month : 1
Year : 2007
"The Day is Monday"

Please help me to solve the problem...
Thank You...
Rhino - 30 Apr 2006 16:35 GMT
>I have a problem in programming JAVA...
>
[quoted text clipped - 10 lines]
> Please help me to solve the problem...
> Thank You...

Homework questions belong on comp.lang.java.help, not here.

But let me warn you that most of the people who help students on
comp.lang.java.help, including me, will NOT give you complete solutions to
problems. If you ask a clear question AND show your own best effort to solve
the problem, i.e. the code you are using to accomplish the assignment, we
will usually give you a useful hint to get you going in the right direction.
However, if you think you can just post a homework question and then come
back in a few hours to collect a complete program, you are going to be very
disappointed.

--
Rhino
Bjorn Abelli - 30 Apr 2006 17:27 GMT
"domba" wrote...
>I have a problem in programming JAVA...
>
[quoted text clipped - 9 lines]
>
> Please help me to solve the problem...

Everything you need to solve that is in the Calendar class:

http://java.sun.com/j2se/1.5.0/docs/api/java/util/Calendar.html#set(int,%20int,%20int)

http://java.sun.com/j2se/1.5.0/docs/api/java/util/Calendar.html#get(int)

http://java.sun.com/j2se/1.5.0/docs/api/java/util/Calendar.html#DAY_OF_WEEK

// Bjorn A


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.