enum Sex {MALE,FEMALE};. 然后,迭代枚举,如下所示:. for(Sex v : Sex.values()){. System.out.println(" values :"+ v);. } 我检查了Java API但找 ...
確定! 回上一頁