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 does Poe establish about the narrator with the opening sentence, "True! nervous -- very, very dreadfully nervous I had been and am; but w
In how many countries can people vote for their leaders?
what would an efficient character do
A(n) ___________________ omniscient narrator makes no judgments or evaluations.
If all three riders travel for 3.5 hours at the same speed as their last ride, how many total miles will the 3 riders travel altogether?
What is the greatest common factor of 15 and 20
The EXHAUSTION I felt during the tournament made me want to give up. Which best replaces the uppercase word in this sentence? sadness dehydration fatigue conf
Students in a middle school must choose to take either Band or Chorus. In a given academic year, 60% of the pupils choose Band and the rest choose Chorus.
a sample of pure copper has a mass of 5 grams calculate its volume
It is greater than 43 and less then 52 if you add the digits the sum is 8