我这里的增强for循环该如何修改?

我这里的增强for循环该如何修改?

img


枚举类完整代码:其中接口A只包含一个show方法

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吗……