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 statement supporting the right to bear arms aligns with the supreme courts opinion in a 2010 case
WILL GIVE BRAINLIEST
Based on the online article,”Definitional Speeches,” when giving a definition speech it is very important to do which of the following choices?
if the area of a square is 225 cm2, what is the length of the diagonal
For which crime was Slobodan Milošević tried by an international court? A. using torture to get information from political enemies B. using weapons of mass d
Why were the Alien and Sedition Acts controversial? A) They were passed over President Adams' veto. B) Many thought they violated the Constitution. C) They fa
A good leader will have followers who_____.
Explain how the 5th and 14th Amendments help to guarantee "due process of law.
11 points. thanks for helping. not sure about either question
What is the approximate distance between the points (-3, -4) and (-8, 1) on a coordinate grid