Lintor466 Lintor466
  • 06-12-2019
  • Computers and Technology
contestada

Assume that the following array has been defined, though you do not necessarily know its length. int[] numbers = new int[??]; What expression should be used:/

Respuesta :

ijeggs
ijeggs ijeggs
  • 06-12-2019

Answer:

int array_length;

int [ ] numbers  = new int[array_length];

Explanation:

Since you do not know the length of the, it is important that you declare and provide a variable of type integer, so you can request the user to input the length of the array

Answer Link

Otras preguntas

21/84 in simplest form
h = -4.9t +27t +2.4 ( h is in meters ) For how long is the balloon more than 3m high?
what visible evidence indicates that a solution is saturated?
You have two unmarked containers, a 9-liter container and a 4-liter container, and an unlimited supply of water. Explain how you would get an exact measurement
What is the y-intercept for y=-x^2+4x
what function do mosques serve
Why is the universe so exquisitely balanced such that life can exist
You buy lunch for guests at a party. You can spend no more than $100. You will spend $20 on beverages and $10 per guest on sandwiches. Write and solve an inequa
A study of dog owners in the city of Mayfield showed that 9% of the dog owners took their dog on vacation with them last year. Mayfield has approximately 4400 d
Alexandra buys sweatshirts for $12 each. In her store, she sells each sweatshirt for $30. Part A As part of a promotion, Alexandra discounts the college sweatsh