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

When the blending of traits occurs, it is referred to as the principle of _____. a. heredity b. complete dominance c. incomplete dominance d. hybridization
What is the 6th factor in 42
In which solution might a cell maintain homeostasis through diffusion ?
Write the equation that satisfies the given conditions. The slope is -4 and the line passes through the point (-2, 3).
Which statement about suicide is true? People who threaten suicide but don’t follow through on their threats are not suicidal. Some people see suicide as their
Let’s say you just bought a new pair of jeans and a sweater. List as many of the resources and factors of production that went into producing these items of clo
Observation of the solar system support the nebular theory because _____.
where is compact bone found
Explain why 1 hundred 4 tens and 14 tens name the same amount.
Why were new trade routes needed in the fifteenth century? A.)There was a need for cheaper routes along the Mediterranean and the East was becoming tumultuous.