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

Can someone tell me the answers pls ill give brainlist and points pls don’t ignore!
Juan Carlos is a sabelotodo (know-it-all) who doesn't always know it all. Mark each of Juan Carlos's sayings with cierto (true) or falso (false). For any that a
use the digits 5,3 and 2 only once in each number how many different 3- digit numbers can you make A. 12 B. 8 C. 5 D. 10 E. 6
Please help mee How does water’s molecular structure affect solubility of substances on Earth?
ONLY THE SMARTEST PERSON IN ENGLISH 2 CAN HELP ME! (SCREENSHOT)
please help me !! the korea modern alphabet has 19 consonants and 21 vowels. what is the minimum number of bits you need to encode each korean character plus a
Ryan earns $85.00 for babysitting each week. How many weeks will he need to babysit in order to buy airpods for $179.00?
0 . 12 + 14 . 6 Pls help​
How do you write 30.8 in scientific notation?
what is 15+8x-10-x? help