944,029 Members | Top Members by Rank

Ad:
  • Java Discussion Thread
  • Unsolved
  • Views: 1016
  • Java RSS
Apr 16th, 2007
0

Java Noob Question

Expand Post »
I need some help with some Java code for a web interface that provides should provide task information as follows. Just give me some guidence and I will (try)do it on my own. Thanks. Input parameters are date char(8) YYYYMMDD and tasknumber – char(4) If date is today it should go to http://www.info.com/servlet/info?num...y&request=main If date is tomorrow it should go to http://www.info.com/servlet/innfo?nu...w&request=main If date is yesterday it should go to http://www.info.com/servlet/info?num...y&request=main
Similar Threads
Reputation Points: 10
Solved Threads: 0
Newbie Poster
javarookie is offline Offline
1 posts
since Apr 2007
Apr 16th, 2007
0

Re: Java Noob Question

Just write some if statements. First off, make sure that you have a 4 digit task number
if the length of the tasknumber = 4 then
if date = today's date then
go to the corresponding link
elseif date = today's date + 1 day then
go to the tomorrow date link
elseif date = today's date - 1 day then
go to the yesterday date link
else
have a message stating that the date is incorrect or does not have a corresponding link

end if

Hope that this pseudocode helps
Reputation Points: 10
Solved Threads: 0
Newbie Poster
evilfruitsmashe is offline Offline
4 posts
since Sep 2006

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in Java Forum Timeline: how i can set class path for j2me
Next Thread in Java Forum Timeline: help needed in printing in java :(





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC