title: How to create a list of different data types, iterate and perform different actions based on type?
body: <p>I have a list of vars made up of strings, doubles and ints which I want to store in one list, iterate through the list and perform different actions based on the type of data it is.</p>
  
  <p>Initially I thought I could create an ArrayList to achieve this, but some of these are primitive types and not objects, so this did not work. </p>
  
  <p>I do not know how many of each item the list will have, so I do not think I can create an object to hold all the different types for this.</p>
  
  <p>What is the best way to achieve this?</p>