bookmark

Unified Expression Language - The Java EE 5 Tutorial


Описание

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"

тэги

Пользователи данного ресурса

  • @jil

Комментарии и рецензии