title: Is using an arraylist of Tuple(double,int,int) slower than two arraylists
body: <p>Is using an arraylist of Tuple(double,int,int) slower than three separate arraylists? I want to avoid creating lots of Tuple objects, but does method 2 create objects by autoboxing? </p>
  
  <pre><code>//Method 1
  Arraylist&lt;Tuple&gt; arr=new Arraylist&lt;Tuple&gt;();
  Tuple t=new Tuple(double, int, int);
  class Tuple{
  
      private double value;
      private int a;
      private int b;
  }
  
  //Method 2
  Arraylist&lt;Double&gt; arr=new Arraylist&lt;Double&gt;();
  Arraylist&lt;Integer&gt; arr=new Arraylist&lt;Integer&gt;();
  Arraylist&lt;Integer&gt; arr=new Arraylist&lt;Integer&gt;();
  </code></pre>