This discussion is archived
4 Replies Latest reply: Jun 13, 2013 2:21 PM by TPD-Opitz-Consulting-com RSS

Is array got from Enum static method "values()" intended as sorted?

Patcha Newbie
Currently Being Moderated

Hi all,

my question is about the array you get when you call "values()" static method from an Enumeration.

Is it intended as sorted by default? And in particular: can I use Arrays.binarySearch() with?


Thank you.



  • Correct Answers - 10 points
  • Helpful Answers - 5 points