Kaitlon7302 Kaitlon7302
  • 03-07-2019
  • Computers and Technology
contestada

Regarding enumerations, the ____ method returns an array of the enumerated constants.

a.
values

b.
valueOf

c.
toArray

d.
ordinal

Respuesta :

Branta Branta
  • 15-07-2019

Answer:

a. values

Explanation:

The values() method returns an array of all values of an enumeration. This method is defined automatically by the java compiler for the enum data type.

For example:

enum Traffic_Signal {RED,YELLOW,GREEN};

for(Traffic_Signal t : Traffic_Signal.values()){

   System.out.println(t);

}

This code segment will print out all the valid values in the Traffic_Signal enumeration.

Answer Link

Otras preguntas

how to draw a profile figure​
importance of bacteria to food preservation
thomas paines common sense convinced the colonists to
7. I like----- a. that old Spanish song b. old that Spanish song c. that old song Spanish d. that Spanish old song
Can you write me a paragraph about holidays in New Zealand
lakukan observasi tentang pengiriman TKW ke luar negeri, bagaimana prosedurnya dan bagaimana kualitas yang dibutuhkan
How much energy needs to be removed from 1 g of water vapor to completely condense that 1 g of water vapor at 100°C? Include the unit. |​
What is the difference between a civil case and a criminal case? A) Criminal cases deal with someone who is accused of breaking the law, while civil cases deal
In an attempt to colonize the Southeastern interior ____________ built a series of forts.
We sometimes see state verbwhen they used with -ing form. So when they are used with-ing are they state verb or not? If they are not what we call them? and wha