// Our arc class public class ArcParameters { public int x, y,width, height, startAngle, arcAngle; public ArcParameters(int x, int y, int width, int height, int startAngle, int arcAngle) { this.x = x; this.y = y; this.width = width; this.height = height; this.startAngle = startAngle; this.arcAngle = arcAngle; } } // and wherever you draw the arcs... ArcParameters[] arcs = new ArcParameters[] { new ArcParameters(0, 0, 0, 0, 0, 0), new ArcParameters(0, 0, 0, 0, 0, 0), etc..... }; for (ArcParameters a : arcs) { graphics.drawArc(a.x, a.y, a.width, a.height, a.startAngle, a.arcAngle); }