deedoe8150 deedoe8150
  • 04-09-2019
  • Computers and Technology
contestada

What is the output of this code sequence? (Be exact in your answer with spacing) double [] a = {12.5, 48.3, 65.0}; System.out.println(a[1]);

Respuesta :

LRev
LRev LRev
  • 08-09-2019

Answer:

48.3

Explanation:

double [] a = {12.5, 48.3, 65.0}; This line creates the array a, which has three values, those three values can be accesed with the index operator, [].

System.out.println(a[1]); This line prints in the console the value in the array a in the second position, in Java the index inside arrays starts from zero, then puts a new line.

Answer Link

Otras preguntas

Tell whether the fraction is in the simplest form. Write yes or no. 2/8, 3/5
Fungi fall under the Plantae kingdom. a. True b. False
do chromosomes swap genetic material in mitosis or meiosis
During the Hellenistic Age, Herophilus determined __________. a. that the sun was the center of the solar system b. that equals 3.14 c. that embalming prevented
write an expression in factored form to represent the total area of each rectangle
What is the most accurate representation of the area of a plot measuring 11.7 cm by 15.4 cm?
Pamela wrote the first American novel. a. True b. False
Find the sum: -21 + (-13) + (-9). A. -43 B. -25 C. 1 D. 4
How long did it take for the United States to dig the Panama Canal? a. three and one-half years b. 17 years c. five years d. nine years
4h - 6= 22 -8s + 1= 33 -4w - 4= 8 5 +1/7b = -2 i need help on these problems!