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

Which of the following phrases belong together
three fourths equals to how many twelfths?
Is 3/5 the same as 3.5
How is fraud related to plagiarism
A charity has received donations totaling $2370. However, this is only three-fifths of its goal. What is the charity's goal?
Which process helps prevent damage and soreness in future reported exercises? A.protein synthesis B.anaerobic respiration C.maximum oxygen uptake D. Cellula
Write the number five hundred fifty five million, six hundred twelve thousand, three hundred in the place value chart. Then write the number in expanded form.
Define life in your own words
What happens when aluminum fills its valence shell?
How did the colonists force the British government to repeal the various taxation acts enacted between 1764 and 1767