如何將未知數的顏色添加到此數組中?例如我想添加6種顏色關於動態添加到數組的諮詢
int[] colors = new int[] { Color.RED, Color.YELLOW, Color.BLUE,Color.GREEN };
以及如何添加未知數的categorySeries?例如,我想添加6個categorySeries
CategorySeries categorySeries = new CategorySeries("Vehicles Chart");
categorySeries.add("cars ", 30);
categorySeries.add("trucks", 20);
categorySeries.add("bikes ", 60);
categorySeries.add("plan ", 40);
在此先感謝