private void deleteCharacter(){
  if (insertionPoint < buffer.length()) {
    buffer.deleteCharAt(insertionPoint);
    sendComposedText();
  }
 else {
    beep();
  }
}

private void deleteCharacter ( ) { if ( insertionPoint < buffer . length ( ) ) { buffer . deleteCharAt ( insertionPoint ) ; sendComposedText ( ) ; } else { beep ( ) ; } }
delete the character following the insertion point in the composed text . if the insertion point is at the end of the composed text , ring the bell .
