private int appendNextCharacterAndAdvanceLoop ( String line , StringBuilder sb , int i ) { sb . append ( line . charAt ( i + 1 ) ) ; i ++ ; return i ; }
Appends the next character in the line to the stringbuffer .