Re: increment letters



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
.


Quantcast