Re: increment letters
- From: Roedy Green <see_website@xxxxxxxxxxxxxxxxxxxx>
- Date: Tue, 31 Jul 2007 20:22:49 GMT
On Tue, 31 Jul 2007 13:03:56 -0700, glennsnoise@xxxxxxxxxxx wrote,
quoted or indirectly quoted someone who said :
Can anyone tell me how to
add an increment function to this so that each button will display a
different letter of the alphabet?
just use a for loop:
for ( char letter= 'A'; letter <= 'Z'; letter++ )
In Unicode you can count on the letters being in order and contiguous.
see http://mindprod.com/jgloss/unicode.html
--
Roedy Green Canadian Mind Products
The Java Glossary
http://mindprod.com
.
- References:
- increment letters
- From: glennsnoise
- increment letters
- Prev by Date: Re: increment letters
- Next by Date: Re: increment letters
- Previous by thread: Re: increment letters
- Next by thread: Facade Stateless session ejb Transaction attribute
- Index(es):