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

In order to write an effective cause-and-effect essay, you must choose two subjects that _____.
How many electrons will oxygen gain or lose when it forms an ion?
What is an archetype?
2. You are seeking to be emancipated from your parents. You are looking for an apartment. There are two final choices. Apartment A has a $1000 security deposit
Which descriptor most accurately helps you visualize a story's plot?
The My Plate diagram plan recommends having more protein than vegetables for each meal. True False Help for 12 points
Which of the following is an example of fine art? A. maps B. sculptures C. charts D. diagrams
what is the answer to -1=x
Solve the equations by combining like terms. Show all the steps: 16x − 4x = -48 Guys, I'm desperate, yall please help a friend out! Thanks in advance :)
What is ralph more concerned about, smoke or fire?