File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Beginning Java and the fly likes Java 6 Enum API values() method Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Java 6 Enum API values() method" Watch "Java 6 Enum API values() method" New topic
Author

Java 6 Enum API values() method

Gina vernon
Ranch Hand

Joined: Jan 16, 2009
Posts: 108
Hi,
I am studying the SCJP guide for Java 6 and it mentions a values() method to read/iterate through enum values. I couldn't find it in the API. Should I be looking elsewhere?
Here's the page I was looking through: http://java.sun.com/javase/6/docs/api/java/lang/Enum.html
Thanks.
Ernest Friedman-Hill
author and iconoclast
Marshal

Joined: Jul 08, 2003
Posts: 24187
    
  34

It's there in the generated enum classes, but not in the base class. It's a static method.


[Jess in Action][AskingGoodQuestions]
Gina vernon
Ranch Hand

Joined: Jan 16, 2009
Posts: 108
Thanks.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Java 6 Enum API values() method