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 the cordinates of the midpoint of the segment AB for each endpoints A(-3,4) B(1,2)
Why is the printing press so important a
hewwo hmph i wanna talk to a guy named jax but he not online so im waitin but im bore.d and canz somebody have a convo wif me :} i want fwiends
Pls help with part b. Will mark brainliest and report rubbish answers.Thank you ppl!!​
Help me Pleaseeee!!!
Please explain how to do this.
find the unit rate :)
50 + (-16) - 5 help me
Can y’all help me much appreciated
A text font fits 12 characters per inch. Using the same font, how many characters can be expected per yard of text? There are 12 inches in a foot, and 3 feet in