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

"Gaming Good for kids"? What do you think? Is gaming good for kids ?Why or why not?
Thou wast all that to me, love, For which my soul did pine- A green isle in the sea, love, A fountain and a shrine, All wreathed with fairy fruits and flowers,
a runner completed the 100 yard dash in 10 seconds. what was the runners average speed
Simplify by combining like terms: 3x + 2 + x + 7 A. 5x + 7 B. 3x + 9 C. 4x + 9 D. 6x + 7
what times what equals -4 and adds up to 3
The fog comes on little cat feet It sits looking over harbor and city on silent haunches and then moves on. Which statement best explains how the poet's word ch
If the interest of a sum at 7.5% p.a in 4 years is Rs. 1050, find the sum​
Find all working solutions for x. ✓(x-5) - 5 = 3
Which of the following accurately describes covalent bonds? A. Covalent bonds are formed when atoms share one or more electrons. B. Covalent bonds are formed wh
What do you think will happen to the mcnableys?