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

what is the number 8.293 round on the hundredths
What are some fun facts about the number 25?
A company sells cookies in 250-gram packs. When a particular batch of 1,000 packs was weighed, the mean weight per pack was 255 grams and the standard deviation
A serum is being given to a patient to desensitize the patient for allergies. Each week the dosage is increased by 0.01 centiliters (cL). If the patient receive
Someone help please?
complete the standard form of the equation -4y=3-2y.
Roberto says that the opposite of a certain integer is -5. cindy concludes that the opposite of an integer is always negative explain cindy error
Which city in the United States was the first to celebrate Labor Day? Atlanta, Ga. Chicago, Il. San Fransisco, Ca. New York City, NY
49,254 find value of 9
Using the scientific method, a(n) _____ must be tested as the focus of any experiment.