The following code compiles, but I don't have any documentation on how to use the "enum" structure. I cant find any info on it in my books or Sun's language documentation...

class Test {

enum eone {
Plus { int operate(int x) { return ++x;} },
Minus { int operate(int x) { return --x;} }
}

public static void main (String[] args){
System.out.println("eone="+eone.Plus);
}

}

You should look better, or get more up to date documentation, as it is quite well documented.

heyya bench....thanks for the link...i was looking for the same....

heyya bench....thanks for the link...i was looking for the same....

and congratulations for reviving a thread that hasn't been open in about two years.. how do you feel about yourself now?