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
Joined: May 30, 2001
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
Terry Doyle <br />SCPJ 1.4 , SCWCD , SCMAD(Beta)
Joined: Nov 22, 2008
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