Re: Calendar Again




"domba" wrote...
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...

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



Inviato da X-Privat.Org - Registrazione gratuita http://www.x-privat.org/join.php
.



Relevant Pages

  • Re: beginner to Java
    ... *Any* value that doesn't correspond to a specified case will fall into the ... /// Bjorn A ... Inviato da X-Privat.Org - Registrazione gratuita http://www.x-privat.org/join.php ...
    (comp.lang.java.help)
  • Re: Easy question but I cant seem to get it to work
    ... Backslashes need to be "escaped": ... /// Bjorn A ... Inviato da X-Privat.Org - Registrazione gratuita http://www.x-privat.org/join.php ...
    (comp.lang.java.help)
  • Re: plz make it 4 me as soon as possible
    ... Otherwise the FIFO strategy won't be applied. ... Thanks, Bjorn, that actually makes the program run. ... Inviato da X-Privat.Org - Registrazione gratuita http://www.x-privat.org/join.php ...
    (comp.lang.java.programmer)
  • Re: new Date(String)
    ... I don't know where you have "double checked" it, and I hate to nitpick, but ... /// Bjorn A ... Inviato da X-Privat.Org - Registrazione gratuita http://www.x-privat.org/join.php ...
    (comp.lang.java.programmer)
  • RE: Searching for ancestors in Buenos Aires named Bartelt
    ... i´m searching for my ancestors named "Bartelt", living in Buenos Aires ... Inviato da X-Privat.Org - Registrazione gratuita ...
    (soc.culture.argentina)