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

4. (01.03) Matt plans to put concrete on a rectangular portion of his driveway. The portion is 8 feet long and 4 inches high. The price of concrete is $98 per
Y=2.5x 2y+3x=32 can you solve and show Work pls I need help
[tex]y < x - 3[/tex]
Explain briefly what sections compose today’s modern orchestra. This is music by the way
What’s the solution for the system? Use the substitution Y-2x=8 16+4x=2y
Object 1 is moving along the x axis with an initial momentum +16 kg·m/s, where the + sign indicates that it is moving to the right. as the drawing shows, object
Which type of plot would be most appropriate to display the responses to asking people about their type of residence​? A. histogram B. timeplot C. pie chart D.
Where is the genetic material located in a bacteria cell
What is the extended metaphor in Shakespeare's sonnet 71?
Which of the following was an early obstacle to industrialization in South America? A lack of petroleum. A lack of electricity. A lack of coal. A lac