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

Which organelle in a prokaryotic cell contains genetic information? A.flagellum B.nucleoid C.ribosomes D.capsule
What is 111/6 radians in degrees?
pa answer plsssssssssss
convert -40⁰ c to Fahrenheit scale​
Please help I’m soo confused what do you think might account for these similar properties? Explain
First idea: Suddenly, women were leaving their homes to cycle and socialize on country roads and city streets. —Wheels of Change, Sue Macy Second idea: It was
Which of the following sets is equal to {1, 2, 3, ...}? {x | x E R, x ≥ 1} {x | x E R, x > 1} {x | x E N, x ≥ 1}
Someone plz help me!! :( D. The ship's crew had been at sea for many months when the ship was wrecked in a bad storm. Many of the crew washed up on a deserted
Your parents put in fencing around the walkway for safety. If 110 feet of fencing is used, what are the dimensions of the pool?
3. Joe has enough money to purchase up three video games that cost $25 each