edu.pdx.cs399J.j2se15
Class EnumeratedTypes

java.lang.Object
  extended by edu.pdx.cs399J.j2se15.EnumeratedTypes

public class EnumeratedTypes
extends Object

Demonstrates J2SE's "enumerated type" facility.

Since:
Summer 2004
Version:
$Revision: 1.1 $
Author:
David Whitlock

Constructor Summary
EnumeratedTypes()
           
 
Method Summary
static void main(String[] args)
          Demonstrates enumerated types by adding several to a SortedSet and printing them out using their Enum.toString() method and in Spanish.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EnumeratedTypes

public EnumeratedTypes()
Method Detail

main

public static void main(String[] args)
Demonstrates enumerated types by adding several to a SortedSet and printing them out using their Enum.toString() method and in Spanish.



Copyright © 2000-2009 Portland State University. All Rights Reserved.