private void removeSeparator(){
  if (buffer.charAt(buffer.length() - 1) == ',') {
    buffer.deleteCharAt(buffer.length() - 1);
  }
}

private void removeSeparator ( ) { if ( buffer . charAt ( buffer . length ( ) - 1 ) == ',' ) { buffer . deleteCharAt ( buffer . length ( ) - 1 ) ; } }
remove a separator character if present
