by using parcelable,trying to add an arraylist into another arraylist,getting error "the method add is not applicable for the arguments"
<p>I have in one activity (firstactivity):</p>

<pre><code>ArrayList &lt;MyDouble&gt; myfinals=new ArrayList &lt;MyDouble&gt;();
...
i.putParcelableArrayListExtra("myfinals",myfinals);
...
 public static class MyDouble implements Parcelable {
            Double al;


            public MyDouble(Parcel source){
                al = source.readDouble();
            }

            public MyDouble(Double val){
                al = val;
            }

            @Override
            public int describeContents() {
                // TODO Auto-generated method stub
                return this.hashCode();
            }

            @Override
            public void writeToParcel(Parcel dest, int flags) {
                // TODO Auto-generated method stub
                dest.writeDouble(al);

            }

            public Double getValueDouble(){
                return this.al;
            }
            public static final Parcelable.Creator&lt;MyDouble&gt; CREATOR = new Parcelable.Creator&lt;MyDouble&gt;() {

                @Override
                public MyDouble createFromParcel(Parcel source) {
                    // TODO Auto-generated method stub
                    return new MyDouble(source);
                }

                @Override
                public MyDouble[] newArray(int size) {
                    // TODO Auto-generated method stub
                    return new MyDouble[size];
                }
            };

        }
</code></pre>

<p>and in the other activity:</p>

<pre><code>ArrayList &lt;MyDouble&gt; myfinals=new ArrayList &lt;MyDouble&gt;();
ArrayList&lt;Double&gt; y =new ArrayList&lt;Double&gt;();
...
 for (int i=0;i&lt;=100;i++){
          y.add(myfinals.get(i)); 

       } 
</code></pre>

<p>I am trying to add 'myfinals' to y
 but it gives me error "the method add is not applicable for the arguments 'firstactivity.MyDouble".</p>
