Please ignore this post as I have no idea what I'm talking about!
Many problems here;
1.) you need to read about enumeration as you're not using it properly. It cycles though a collection one element at a time.
this statement
makes no sense(unless it's something in 5.0 that I don't know) it should be something like this (psuedo code off the top of my head)
CollectionType collection = {windows, unix, linux, macintosh};
Enumeration e = collection.elements();
e.nextElement;
2.) This statement makes no sense
You'd need a class named OperatingSystems to make any sense of this at all. You probable meant to use a String here.
3.) switch statements use char, or something that can be evaluated to a char. Strings won't work.
you're trying to evaluate to a string here, well actually an OperatingSystems according to your code but that makes even less sense.
Start smaller, get a switch statement to compile and run and then add the next piece.
[ September 20, 2005: Message edited by: Hentay Duke ]
[ September 20, 2005: Message edited by: Hentay Duke ]