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

Dissolution and precipitation of _______ are the main processes that form limestone caves? A. calcite B. sandstone C. clay D. salt water
What are four ways that Polynesians were probably able to navigate the Pacific?
The key event that marks the rite of passage into adulthood in the United States is
the format of placing the author and page number inside parenthesis for documentation is called
The insect vector for Plasmodium vivax is the ___. a. Tsetse fly, b. Phlebotomine sand fly, c. Kissing bug, d. Anopheles mosquito
What is the area of an equilateral triangle with sides of 10 inches and height of 7 inches? A. 70 sq. in. B. 20 sq. in. C. 44 sq. in. D. 35 sq. in
43.8,36.7____, 22.5,... find the missing number in the sequence
What is the answer to 10% of 70?
Taste buds Encourage for a variety of flavors also stimulate different nutrients true or false
Can someone explain the steps to solve this so I can graph it? y = 2x + 3?