Results 1 to 2 of 2
  1. #1
    barney is offline Member
    Join Date
    Jul 2007
    Posts
    40
    Rep Power
    0

    Default How to bump the value up by one in my StingBuffer

    I cant understand how to bump the value up by one in my StingBuffer.

    If I have the letter A in my buffer and I want to set it to the next letter say B, how would I do that?

    Thanks.

  2. #2
    zoe
    zoe is offline Member
    Join Date
    Jul 2007
    Posts
    40
    Rep Power
    0

    Default

    Please check this:

    Java Code:
    theBuffer.setCharAt(position,theBuffer.getCharAt(position) + 1);

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •