title: Displaying a list of records in a Message Dialog
body: <p>Here is the situation , i have a doctor record array where there are attributes such as first name , doctor id , contact number , etc. I am trying to display all the registered doctors ids and their contact numbers in a JOptionPane Message Dialog, I want this to happen when  i press a button.  It should be displayed as a list.</p>
  
  <p>Is this possible ? I have tried it but i only managed to get one record  displayed, other records are all jumbled. </p>
  
  <p>Thank you for your time.</p>