FileDocCategorySizeDatePackage
MediaFancy.javaAPI DocExample296Sun Jan 25 13:43:38 GMT 2004None

MediaFancy.java

public enum MediaFancy {
	book {
		public String toString() { return "Book"; }
	},
	music_cd, music_vinyl, movie_vhs, movie_dvd;

	public static void main(String[] args) {
		MediaFancy[] data =  { book, movie_dvd, music_vinyl };
		for (MediaFancy mf : data) {
			System.out.println(mf);
		}
	}
}