bookmark

Unified Expression Language - The Java EE 5 Tutorial


Description

When referencing an enum constant with an expression, you use a String literal. For example, consider this Enum class:

public enum Suit {hearts, spades, diamonds, clubs}

To refer to the Suit constant, Suit.hearts with an expression, you use the String literal, "hearts"

Preview

Tags

Users

  • @jil

Comments and Reviews