Change the order of color assignment

Listing 2 declares and initializes an array of color data

Listing 2. Original array containing turtle colors.
  private static Color[] colorArray = 
    { Color.green, 
      Color.cyan, 
      new Color(204,0,204), 
      Color.gray};

File: be.htm [Next] [Prev]