hi I have a String which is the letter A is there anyway i can dynamically chane it to B ? obviously A + 1 = A1 but is there something similar for letters? thank you
Terence Doyle
Ranch Hand
Joined: May 30, 2001
Posts: 328
posted
0
HI If it's just letters you want why not use char?? The code below prints out j and then k.
Hope that helps, Terry Doyle
Raising Flares debut album 'Ignition' out now
http://www.raisingflares.com
Terry Doyle <br />SCPJ 1.4 , SCWCD , SCMAD(Beta)
Anonymous
Ranch Hand
Joined: Nov 22, 2008
Posts: 18944
posted
0
Remember, Strings are immutable, so there is nothing that you can do to dynamically or explicitly change the value of a string. The suggestion to use chars is a good one. Remember that chars are primitive in Java.
------------------ Brian Hoff Sun Certified Programmer for the Java� 2 Platform