private boolean isAlphabet(int code){
  if (Character.isLetter(code)) {
    return true;
  }
 else {
    return false;
  }
}

private boolean isAlphabet ( int code ) { if ( Character . isLetter ( code ) ) { return true ; } else { return false ; } }
helper to determine if a given character code is alphabetic .
