A friendly place for programming greenhorns!
Big Moose Saloon
Search
|
Java FAQ
|
Recent Topics
Register / Login
Win a copy of
The Mikado Method
this week in the
Agile and other Processes
forum!
JavaRanch
»
Java Forums
»
Certification
»
Programmer Certification (SCJP/OCPJP)
Author
where is method :)
Dan Polak
Ranch Hand
Joined: Nov 06, 2006
Posts: 32
posted
Nov 19, 2006 14:56:00
0
Maybe someone know where is definition of static method values() whitch is available for every enums instance ?
enum A {
}
A[] a = A.values();
<a href="http://www.dantheman.pl" target="_blank" rel="nofollow">http://www.dantheman.pl</a>
Jim Yingst
Wanderer
Sheriff
Joined: Jan 30, 2000
Posts: 18670
posted
Nov 19, 2006 15:16:00
0
It's in the language specification:
JLS 8.9
.
"I'm not back." - Bill Harding,
Twister
Franz Fountain
Ranch Hand
Joined: Nov 15, 2006
Posts: 58
posted
Nov 19, 2006 18:15:00
0
You can also take a look at this article on the Sun website regarding Enums:
http://java.sun.com/j2se/1.5.0/docs/guide/language/enums.html
I agree. Here's the link:
http://ej-technologies/jprofiler
- if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
subject: where is method :)
Similar Threads
Widening and Boxing
setting values in array
Thread Question from Sun's Free Mock Test
Problem with my servlet Advice?
refresh canvas, designer problem?
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter