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 president Supported the creation of the environment protection agency
what is 9(a+6) ? expanded and simplify
The Republican Party often has, Moderate to extreme views Liberal to conservative views. Conservative to moderate views Liberal to moderate views
doe the color black absorb more than the color white
what is the proper name of the quadrilateral
How much pure acid should be mixed with 6 gallons of a 60% acid solution in order to get an 80% acid solution?
zoom in please I have another page
At Computer Central, the cost of renting a computer is $45 plus $35 per day. The total cost can be represented by the equation y = 45 + 35x, where x is the numb
The Phylloclade commonly found in xerophytic plants is the modified ? [A] stem[B] roots[C] leaf[D] flower
Which organization works to improve payment arrangements and other financial dealing between countries