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 is the percentage increase from 200 to 280
If 2n=14 what Is 8n? I am really bad at algebra and I need to do my homework
What part of the cell produces ATP for the blueberry plant to grow? A. Mitochondrion B. Cytoplasm C. Ribosome D. Nucleus
Expand the expression 2(r - 4) + 5(r + 2). Express your answer in simplest form
what british policy did american colonists protest at the boston tea party
What is an "alloy" in the chapter of metals in chemistry??
How many “dots” would be around the central atom in the Lewis structure of S? A) 5 B) 6 C) 7 D) 4
How do I make a formula for a line if they only give me the intercept and the slope
need help with this question#20
Which religion has a cultural landmark the dome of the rock