private void btnSearchActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnSearchActionPerformed
        // TODO add your handling code here:
        String SearchCategory = JOptionPane.showInputDialog(null, "Please enter the Book Category you want to search");
        
        for(int i = 0; i < aList.size();) {
            if(SearchCategory.equalsIgnoreCase(aList.get(i).getBookCategory())) {
                JOptionPane.showMessageDialog(null, "Student ID:" +aList.get(i).getStudent()
                        + "\n Book Name:"+aList.get(i).getBookName()+ "\n Book Category:"+aList.get(i).getBookCategory());
            }
        
        
        }
        
    }//GEN-LAST:event_btnSearchActionPerformed