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

Classify the solution of 1/×+4+1/2=1/×+4 as extraneous or non extraneous
What is the correlation between salaries and computer skills? * ANSWER FAST *
I want to know the answer to this problem?
This 3-day concert in upstate New York in 1969 drew almost half a million young people and is widely regarded as the pinnacle of the American counter-culture mo
What refers to the study of your strengths and weaknesses and the identification of your area of interest
Luke Bryan's first album was what?
Which statement is true
How do I solve this question
What is (2x4)+(12x2)/4? Will give out brainliest!! Also press search+L
Identify the feature not unique to vertebrates. A) vertebrae B) backbone C) skull D) skeleton