import java.awt.Color; public class LineColors { public static Color getColor (int graphnum) { if (graphnum==0) { return Color.black; } else if (graphnum == 1) { return Color.red; } else if (graphnum == 2) { return Color.blue; } else if (graphnum == 3) { return Color.magenta; } else if (graphnum == 4) { return Color.orange; } // For equations 6 and higher, use the color gray // return Color.gray; } }