sorsaqwq sorsaqwq
  • 08-01-2022
  • Computers and Technology
contestada

What is wrong with each of the following code segments? int[] values; for (int i = 0; i < values.length; i++) { values[i] = i * i; }

Respuesta :

kenshri1
kenshri1 kenshri1
  • 08-01-2022

Answer:

values have been declared but not initialized nor allocated memory. So you are not allowed to use "values.length"

Answer Link

Otras preguntas

if you're standing on the trail 220 feet from the bottom of the tree, you have to look up at a 60 degree angle to see the top . How tall is the tree ​
Plsss....hellpppp...
what is the answer for an=an–1+1
A circle with 50 meter of the circumference what is the diameter
the radius of a regular pentagon measures 7ft. which of the following would be an acceptable equation to use to solve for the measure of the side, s?(the select
When Magnesium Sulfate and Calcium Chloride are mixed what is the chemical reaction
How do you scan a qr code on your iPhone
The is a function of the
What is the value of 3 1/3 ÷ 2/3​
why is it important to study solar flares?