I am trying to grab an object from an array list and copy it to another array list.
as per a request
public abstract class codeType{
stuff
}
public class drawOval extends codeType{
}
main{
arrayList<codeType> a
arrayList<codeType> b
a.add(new drawOval(stuff))
a.add(new drawOval(other Stuff))
b.add(a.get(0).clone) //or something like that
}
That does not work but I am looking for something like that.