C
CK
Hi Guys,
I need a function that will replace the letter after a "hyphen" with a
capital letter.
Like if the user enter "Zeta-jones" it would be "Zeta-Jones".
I am a little stumped. Any ideas? I know it's a combination of substring
and replace and toUpper().
I just can't get the method call correctly.
I use iHyphen = x.indexOf("-");
I need to replace the letter after the hyphen with the uppercase version of
the letter.
Any ideas?
Thanks,
Chris
I need a function that will replace the letter after a "hyphen" with a
capital letter.
Like if the user enter "Zeta-jones" it would be "Zeta-Jones".
I am a little stumped. Any ideas? I know it's a combination of substring
and replace and toUpper().
I just can't get the method call correctly.
I use iHyphen = x.indexOf("-");
I need to replace the letter after the hyphen with the uppercase version of
the letter.
Any ideas?
Thanks,
Chris