Originally posted by Giovanni Murguia:
Hello!
You could try something like:
Giovanni
i'm getting compiler error for the above code as follows:
cannot find symbol
symbol : method setCharAt(int, int)
location: class java.lang.StringBuffer
sb.setCharAt(0, letter+1);
i tested if i change it to the following it compiles fine:
sb.setCharAt(0, letter);
so what's wrong with the +1 there?