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

What numbers add up to -5 and multiply to get -90
On a TI-84, how do you stop it from giving you simply a number for an answer when you put in a polynomial divided by another polynomial?
How do i find the greatest common factor of 150, 275, and 420 ??
if the slope of a position versus time graph is downward what kind of motion produced the graph
David bought a game on sale for $6 less than half its original price.she paid $88 for the jacket. What was the original price
5.815 + 6.021 as a mixed number
I'm inside the path I'm a difference of two numbers outside the paths what number am I
What is the connection between 2.3 times 6.9 and 6.9 divided by 2.3.
Tim solved a system of linear equations. He found that an infinite number of points satisfied the system. What do you know for certain is true about the two lin
what evidence shows that sumerians where not prehistoric