title: How to make a record of multiple data types in java?
body: <p>(using Netbeans)</p>
  
  <p>I want to make something with an index like an array does, that when called will return multiple pieces of information which were previously inserted by the user.</p>
  
  <pre><code>e.g
  name = Luke;
  age = 20;
  favouriteColour = red;
  </code></pre>
  
  <p>I have tried multiple arrays, maps/hashmaps (please someone explain these aswell, I have no clue), and despite it kind of working, it's like I've just thrown spaghetti at the screen.</p>
  
  <p>Any ideas?</p>