Buggy code:
public class TransactionManager extends JFrame { public TransactionManager ( ) { } @ SuppressWarnings ( "unchecked" ) private void initComponents ( ) { } BankDataBase data = new BankDataBase ( ) ; private void phoneNumberFieldActionPerformed ( ActionEvent evt ) { } private void nameFieldActionPerformed ( ActionEvent evt ) { } private void openAccountActionPerformed ( ActionEvent evt ) { } private void closeAccountActionPerformed ( ActionEvent evt ) { String nameFieldText = nameField . getText ( ) ; String phoneNumberFieldText = phoneNumberField . getText ( ) ; boolean removed = false ; dateOpenedField . setText ( null ) ; accountNumberField . setText ( null ) ; E_accountType accountType ; if ( checking . isSelected ( ) ) accountType = E_accountType . CHECKING ; else <START_BUG> if ( checking . isSelected ( ) ) <END_BUG> accountType = E_accountType . SAVINGS ; else accountType = E_accountType . MONEY_MARKET ; Account temp = data . find ( nameFieldText , phoneNumberFieldText , accountType ) ; if ( isValid ( nameFieldText , phoneNumberFieldText , false ) ) { if ( checking . isSelected ( ) ) { if ( temp instanceof Checking ) { removed = data . remove ( ( ( Checking ) ( temp ) ) ) ; } } else if ( savings . isSelected ( ) ) { if ( temp instanceof Savings ) { removed = data . remove ( ( ( Savings ) ( temp ) ) ) ; } } else if ( moneyMarket . isSelected ( ) ) { if ( temp instanceof MoneyMarket ) { removed = data . remove ( ( ( MoneyMarket ) ( temp ) ) ) ; } } if ( removed ) { printRemovedSuccessfully ( ( ( Account ) ( temp ) ) ) ; } else { JOptionPane . showMessageDialog ( new JFrame ( ) , "Account<seq2seq4repair_space>Not<seq2seq4repair_space>Found" , "Dialog" , JOptionPane . ERROR_MESSAGE ) ; } } } private void printRemovedSuccessfully ( Account temp ) { } private void printAddedSuccessfully ( Account temp ) { } private boolean isValid ( String n , String p , boolean add ) { } private boolean accountTypeCheck ( String n , String p ) { } private void showAccountsActionPerformed ( ActionEvent evt ) { } private void checkingActionPerformed ( ActionEvent evt ) { } private void savingsActionPerformed ( ActionEvent evt ) { } private void accountNumberFieldActionPerformed ( ActionEvent evt ) { } private void dateOpenedFieldActionPerformed ( ActionEvent evt ) { } public void main ( ) { } private boolean nameIsValid ( String name ) { } private boolean phoneIsValid ( String phone ) { } public static void main ( String [ ] args ) { } private JTextField accountNumberField ; private ButtonGroup accountTypeGroup ; private JTextField balanceField ; private JRadioButton checking ; private JButton closeAccount ; private JTextField dateOpenedField ; private JCheckBox directDeposit ; private JButton jButton2 ; private JLabel jLabel1 ; private JLabel jLabel2 ; private JLabel jLabel4 ; private JLabel jLabel5 ; private JLabel jLabel6 ; private JLabel jLabel7 ; private JPanel jPanel1 ; private JPanel jPanel2 ; private JPanel jPanel3 ; private JRadioButton jRadioButton4 ; private JScrollPane jScrollPane1 ; private JTextField jTextField1 ; private JTextField jTextField5 ; private JToggleButton jToggleButton1 ; private JRadioButton moneyMarket ; private JTextField nameField ; private JButton openAccount ; private JTextField phoneNumberField ; private JButton runMonthlyInterestAndFees ; private JRadioButton savings ; private JButton showAccounts ; private JCheckBox specialSavingsAccount ; private JTextArea statisticsArea ; }

Fix:
if ( savings . isSelected ( ) )