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

(tco 8) the united nationsÂ’ predecessor, the _____, tried collective security to ensure peace.
Why do the lithospheric plates move?
Assume you are a manager in a multinational company that needs to send a team of three to five people to saudi arabia for about two weeks to investigate the fea
Theo is in target looking for a gift for his girlfriend. theo is not sure of what he wants except in general terms. at what level of need awareness is theo in?
What is the purpose of the acronym NINJA??
Which of the following is classified by assigning an adverse effect code from the ICD-10-CM Table of Drugs and Chemicals? A. A patient was admitted in a coma
please help with this Spanish question
Who provides final rulings on the constitutionality of state and local laws
How to use keyboard to play piano in garageband?
The model of communication referred to as "human communication as action" may be summarized with the phrase _____.