A statement such as points.add(new Point(2,3));
must be inside some method/constructor.
solved I get an error when i try to add a new point into my ArrayList
A statement such as points.add(new Point(2,3));
must be inside some method/constructor.
solved I get an error when i try to add a new point into my ArrayList