對於: enum Color { RED,BLUE,BLACK YELLOW,GREEN}; (1) ordinal()方法: 返回枚舉值在枚舉類種的順序。 ... java enum與int類型的轉換.
確定! 回上一頁