我这里的增强for循环该如何修改?
package com.chapter10.HomeWork.HomeWork08;
public enum Color implements A{
RED(255, 0, 0), BLUE(0, 0, 255), BLACK( 0, 0, 0), YELLOW(255, 255, 0), GREEN(0, 255, 0);
private int redValue;
private int greenValue;
private int blueValue;
public void show(){
System.out.println(RED);
}
Color(int redValue, int greenValue, int blueValue) {
this.redValue = redValue;
this.greenValue = greenValue;
this.blueValue = blueValue;
}
}
那不是 Color color : values
吗……