title: How can I store multiple variable values into a single array or list?
body: <p>So I have the below variables which are a mix of data types including integers, strings, doubles and arrays. I already have the methods required to fill each variable. All I need now is to gather all the variables into a single row of data, and than display that data in another class for later use. The data should be kept with same data type so I can use them in another class Also the same row of data need to be stored more than once. Below is a demonstration of how I want the data to be stored.</p>
  
  <pre><code>Ticket No = 1, Ticket Type = "Lotto",   Ticket Value = 2.50, Numbers = {1,2,3,4,5}
  
  Ticket No = 2, Ticket Type = "Jackpot", Ticket Value = 2.50, Numbers = {4,1,4,5,5}         
  </code></pre>
  
  <p>Kindly provide me with the simplest solution as possible. Thanks.</p>
  
  <pre><code>int id;
  String ticketType;
  double value;
  int[] numbers= new int[5];
  </code></pre>