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 are tissue that covers your whole body and allows you to move?
A line passes through the point (-9,7) and has a slope of −2/3 . Write an equation in point-slope form for this line.
I need 30 facts about the old stone age
What is a common element of postmodern plays? A. Actions are fast-paced. B. Nothing much happens. C. Everybody dies. D. Everybody gets married.
What is 22 is 44% of what number
what is the product of -3 1/3 and -8 7/10
When an optical drive is writing and the drive does not receive a continuous stream of data, the disc is ruined.?
Which is larger 0.035 or 0.17
school guidelines require that there must be at least 2 chaperones for every 25 students going on a school trip how many chaperones must there be for 53 student
MLA style is typically used by authors and students creating writing project in which of the following areas