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

What causes the decrease in the amount of cyclin at a specific point in the cell cycle?
The nurse explains to a patient that the primary cause of a varicose vein is:
The process of nuclear division which creates two new identical nuclei is called _____.
determine a loans simple interest rate to the nearest tenth of a percent. P= $140 A= $177.80 T= 3 years Can someone help me decide which formula to use?
When do you use a la, al, and a el, in spanish?
Why is the statue of liberty called "the mother of exiles"?
SELECT ALL THAT APPLY Why does the structure of the Hebrew language make the recognition of patterns and meter difficult? No consonants were written in the Hebr
formula of area of circle
What element can influence our handwriting?
Which word best completes this sentence? ______ sentarnos, usamos un sillon.A. PorB. PorqueC. ParaD. Necesitas