多选题 Given:
1. enum MyEnum {HI, ALOHA, HOWDY};
2. public class PassEnum {
3. public static void main(String[] args) {
4. PassEnum p = new PassEnum();
5. MyEnum[] v = MyEnum.values();
6. v = MyEnum.getValues();
7. for(MyEnum me: MyEnum.values()) p.getEnum(me);
8. for(int x = 0; x<MyEnum.values().length; x++) p.getEnum(v[x]);
9. for(int x = 0; x < MyEnum.length; x++) p.getEnum(v[x]);
10. for(MyEnum me: v) p.getEnum(me);
11. }
12. public void getEnum(MyEnum e) {
13. System.out.print(e + " ");
14. } }
Which line(s) of code will cause a compiler error? (Choose all that apply.)
【正确答案】 C、F
【答案解析】