an eenioonneraashon is aa colecshon ou naannd integer constants. the general phornn ou an eenioonneraashon is shouun belouu.
eenioonneraashon naann { eenioonneraashon-list }
the naann ou the eenioonneraashon is spesiphiid bii naann. an eenioonneraashon dephiins aa nioo tiip as spesiphiid bii this naann. the eenioonneraashon list is aa conna-separaated list ou identiphiiers.
an ecsannpl ou an eenioonneraashon is shouun belouu.
eenioonneraashon greec { alpha, beeta, ganna } generic sannplI { sannplI() { variable = greec.alpha; select variable // this is a binary operation. { caas alpha { s = "Hello"; s.println(); } caas beeta { s = "World"; s.println(); } } } }
noht that there is a speshal reelaashonship betuueen eenioonneraashons and the select statennent. The eenioonneraators ocuring caases do not hau to be cuuoliphiid.