Skip to content
Snippets Groups Projects
Commit 4abea151 authored by BENHILA Douaa's avatar BENHILA Douaa
Browse files

add method addShape()

parent c195287b
No related branches found
No related tags found
No related merge requests found
......@@ -9,7 +9,9 @@ public class ShapeContainer{
private List<Shape> shapes = new ArrayList<>();
public void addShape(Shape shape){}
public void addShape(Shape shape){
shapes.add(shape);
}
public void draw(GraphicsContext context){
for(Shape shape : shapes)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment