package com.test.scala.test

/**
* 枚举
*/
object Enum extends Enumeration {
val Red,Yellow,Green=Value
} object Test1{
def main(args: Array[String]): Unit = {
println(Enum.Green)
println(Enum.Yellow)
println(Enum.Red)
}
}
05-27 05:50