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

All computers can display any font embedded in a webpage so designers can use unusual or really fancy fonts as regular text on a page. True False
Solve the inequality and express your answer in interval notation. x^2-12x+5<0
NAME 2 BENEFITS OF SETTING UP A FRANCHISE?
Find the distance between the pair of points, Use the distance formula. Show your work. (-12,20) and (-22,16)
what are mac os, windows, and linux examples of? question 18 options: hardware smartphones hard drives operating systems
Use the drop-down menus to complete the statements. are made of amino acids. are used by organisms to store and transmit genetic information. are used by organi
ESSENTIAL QUESTIONS . What are the characteristics of a civilization? • How did patterns of civilization differ between the ancient and medieval worlds?
25 25 4 2º A = 25. = C=
Using E-commerce , how you can make Secure payments
can someone help me with this