I'm a freshman student in my first computer science class, and I've hit one of many walls in Java development. For a little background, we're working with BlueJ.
Our assignment is to implement an ArrayList into a class that calls upon another class "Circle" to create and modify a large amount of circles all at once.
My difficulty is starting out with implementing ArrayList into the assignment. I've worked with NumberRange, but I'm not exactly sure how to bring in ArrayList and then store objects into the list. I'm not asking for a complete solution, just a starting point to work from. Thanks.
Here's the shoddy code I have so far:
public class SuperCircleDrawer {
private Circle circles;
private ArrayList<Circle> storage;
public SuperCircleDrawer()
{
ArrayList storage = new ArrayList<Circle>();
}
public void addCircle()
{
new Circle;
}
public void drawCircles()
{
circles.makeVisible();
}
}