title: Search an arraylist by the contents of a JTextField - arraylist.contains(jtextfield)
body: <p>Currently, I'm trying to write a system, which is focused around inputting data into lists and arraylists, and implementing search and sort functionality.</p>
  
  <p>Currently on my system, I have:</p>
  
  <p>A class to store data
  An arraylist class which gets data from an object within the data storage class.
  And finally, a swing GUI class, which contains a JList which displays the Arraylist.</p>
  
  <p>What i'm trying to do is search through the arraylist with a JButton actionlistener, and then output the results on the search to the JList.</p>
  
  <p>The JButton would take the contents of a JTextField, and check if the string is present in the ArrayList.</p>
  
  <p>My question first of all is, how would I go about creating a search function in the arraylist class, and call the contents of a JTextField in a seperate class?</p>
  
  <p>Secondly, would I need to convert the jtextfield to a string before I could call a .contains method on the arraylist?</p>
  
  <p>and thirdly, once the search function is implemented, how would I go about selecting a record from the arraylist if the text searched for is present</p>
  
  <p>Here is my Data storage class:
  <a href="http://pastebin.com/hwyD8r1j" rel="nofollow">http://pastebin.com/hwyD8r1j</a></p>
  
  <p>My arraylist class:
  <a href="http://pastebin.com/d3ftLsJb" rel="nofollow">http://pastebin.com/d3ftLsJb</a></p>
  
  <p>I'm not expecting you guys to write it for me, although that would be nice, haha.</p>
  
  <p>But any pointers or insight on how I could go about implementing this functionality into my arraylist would be appreciated,</p>
  
  <p>Oh and if you need me to post my GUI class, just ask.</p>