Re: Converting int to string
- From: Roedy Green <my_email_is_posted_on_my_website@xxxxxxxxxxxxxx>
- Date: Sun, 30 Oct 2005 05:00:26 GMT
On 29 Oct 2005 09:35:54 -0700, "Nick" <nickmacdonaldw@xxxxxxxxxxx>
wrote, quoted or indirectly quoted someone who said :
>Can anyone tell me how to develop this so that it shows the months ie
>January, February etc when it runs.
the basic idea is to create a 12-long array constant containing the
months of the year. You can then index it by 0-based month number to
get a string.
See learn how to create array constants see
http://mindprod.com/jgloss/gotchas.html#ARRAY
--
Canadian Mind Products, Roedy Green.
http://mindprod.com Java custom programming, consulting and coaching.
.
- References:
- Converting int to string
- From: Nick
- Converting int to string
- Prev by Date: Re: tictactoe
- Next by Date: Re: recommendations or a java development environment
- Previous by thread: Re: Converting int to string
- Next by thread: tictactoe
- Index(es):
Relevant Pages
|