import java.util.stream.IntStream;
enum Example {
Red, Blue, Green, Yellow, Orange, Purple, Brown
}
public class Main {
public static void main
(String[] args
) { IntStream.range(0, Example.values().length)
.filter(i -> i % 2 == 0)
.
forEach(i
-> System.
out.
println(Example.
values()[i
])); }
}
aW1wb3J0IGphdmEudXRpbC5zdHJlYW0uSW50U3RyZWFtOwoKZW51bSBFeGFtcGxlIHsKCVJlZCwgQmx1ZSwgR3JlZW4sIFllbGxvdywgT3JhbmdlLCBQdXJwbGUsIEJyb3duCn0KCnB1YmxpYyBjbGFzcyBNYWluIHsKCXB1YmxpYyBzdGF0aWMgdm9pZCBtYWluKFN0cmluZ1tdIGFyZ3MpIHsKCQlJbnRTdHJlYW0ucmFuZ2UoMCwgRXhhbXBsZS52YWx1ZXMoKS5sZW5ndGgpCgkJCS5maWx0ZXIoaSAtPiBpICUgMiA9PSAwKQoJCQkuZm9yRWFjaChpIC0+IFN5c3RlbS5vdXQucHJpbnRsbihFeGFtcGxlLnZhbHVlcygpW2ldKSk7Cgl9Cn0K