adding to an arrayList
Hi there,
I'm trying to add an integer to my arrayList but I can't do it b/c the arrayList is defined as holding my user-defined object type...I couldn't even create an arrayList to hold integers. Here's what I mean:
ArrayList<Polygon> sourcePatch = new ArrayListPolygon();
sourcePatch.add(targetPoly);
*****when I try to add targetPoly to the list, I get an error saying it has to be type Polygon instead of type Integer. How do I get around this?

