title: Java Array with multiple data types
body: <p>What can I use to store multiple different types of data, Int/String/etc.? I come from a PHP background where I can store different types of data into an array, but I don't know how to do that in Java.</p>
  
  <p>Take this example:</p>
  
  <pre class="lang-php prettyprint-override"><code>$array = array(
      "val1" =&gt; 1,
      "val2" =&gt; "cat",
      "val3" =&gt; true
  );
  </code></pre>
  
  <p>How can I make something similar in Java?</p>