Re: java
- From: Willem <willem@xxxxxxxx>
- Date: Fri, 3 Jun 2005 13:15:26 +0000 (UTC)
grljevic@xxxxxxxxx wrote:
) Hi All,
) I need to create a website that can do the following in java, please
) could you assist.
)
) Use indexOf() and lastIndexOf() functions to test and obtain the
) required alterations to the name. charAt() can be used to check that
) the date input is of the correct form.
)
) To perform the date calculation, obtain the current date and convert
) the input date into integer values (i.e. separate the day, month and
) year parts) using string substring. Subtract the input year from the
) current year to obtain the age, then add one to this if the birthday
) day and month have already gone in the current year.
)
)
) so the end result needs to look like this
) Hello T. C. L. Blair. Did you know that on
) your next birthday you will be 51 years old?
Well, I would say that your instructor provided pretty exact instructions,
so I'll assume that he also told you, or has given you study material, that
would suffice completely to make this task quite easy for you.
Now, of course, if you happen to get stuck while writing the program, you
could post what you've got so far here and somebody will be glad to point
out the bit where you got stuck and give you a hint on how to get unstuck.
Hope that helps.
SaSW, Willem
--
Disclaimer: I am in no way responsible for any of the statements
made in the above text. For all I know I might be
drugged or something..
No I'm not paranoid. You all think I'm paranoid, don't you !
#EOT
.
- References:
- java
- From: grljevic
- java
- Prev by Date: java
- Next by Date: Re: Simplify formula for iterative programming
- Previous by thread: java
- Index(es):
Relevant Pages
|