FileDocCategorySizeDatePackage
EnumList.javaAPI DocExample225Sun Jan 11 20:46:06 GMT 2004None

EnumList

public class EnumList extends Object
Simple demo to print all the types of an enum.

Fields Summary
Constructors Summary
Methods Summary
public static voidmain(java.lang.String[] args)

		enum State { ON, OFF, UNKNOWN };
		for (State i : State.values()) {
			System.out.println(i);
		}