private void btnSubmitActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnSubmitActionPerformed
        // TODO add your handling code here:
  
        Name = txtName.getText();
        StudentID = txtStudentID.getText();
        Query = txtQuery.getText();
        
        Contact c = new Contact();
        c.setName(Name);
        c.setStudentID(StudentID);
        c.setQuery(Query);
        
        File outFile;
        FileOutputStream fStream;
        ObjectOutputStream oStream;
        
        try{
            outFile = new File("contactcomputing.data");
            fStream = new FileOutputStream(outFile);
            oStream = new ObjectOutputStream(fStream);
            
            oStream.writeObject(aList);
            
            JOptionPane.showMessageDialog(null, "You submitted your query successfully, we will respond to you ASAP!");
            
            oStream.close();
            
            
        }
        catch(IOException e){
            System.out.println(e);
        }
         
       
        
   
           
        
    }//GEN-LAST:event_btnSubmitActionPerformed