private int appendNextCharacterAndAdvanceLoop(String line,StringBuilder sb,int i){
  sb.append(line.charAt(i + 1));
  i++;
  return i;
}

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 .
