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