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

Find the area of the sector. Use 3.14 for pl and round your answer to the nearest tenth if necessary. 19 m
HEY PLEASE HELPP!!!!!!
!!!!!!!!!WORTH 25 POINTS!!!!!!!!! context: CommonLit The Fox and the Horse: https://www.commonlit.org/en/texts/the-fox-and-the-horse question: In the context o
Juror number 10 says "how can you believe him, knowing what he is? I lived among them my whole life. You can't believe a word they say" what does this tell us a
Which country is categorized as semi-periphery? A) Australia B) Canada C) India D) Japan
I need help with this pls
A sector of a circle has a central angle measuring 80 degrees. If the area of the sector is 32 1 m2 what is the radius of the circle in meters?
3. Joey pushes on a box with 15N of force to the left, and Annie pushes on the box with 18N of force to the right. What is the net force and direction on the bo
how many four digit numbers can be formed without using the digits 5 or 7?
Pls, help on this one! Today, I have a test and I forgot to do this part!