glover2066 glover2066
  • 03-12-2021
  • Computers and Technology
contestada

How to get an object from a container in java.

Respuesta :

khgvyy
khgvyy khgvyy
  • 03-12-2021
If it stores any type of objects mixed, use Object as storage class. All classes inherit from Object and for primitives use their respective wrapper classes. Or just use one of the bazillion container classes that already exist.
Answer Link

Otras preguntas

lara has a tin of peanuts cashews and pecans she will pick a second nut without looking. how many outcomes are there for her two picks?
List all integers between -0.6 and 4.17 THANK U
which of the following expressions does not equal: the sixth root of 81x^4y^8 a. (3xy^2)^2/3 b. (3x)^2/3y^4/3 c. (3x^2y^4)^1/3 d. cube root of 9x^2y^4
Tennis balls with a diameter of 2.5 in. are packaged 3 to a can. The can is a cylinder. Find the volume of the space in the can that is not occupied by tennis b
A graph depicts force versus position. What represents the work done by the force over the given displacement? A. The work done is equal to the product of the m
lara has a tin of peanuts cashews and pecans she will pick a second nut without looking. how many outcomes are there for her two picks?
f f(x) = 2x2 and g(x) = 3x, what is (g o f)(x) a. 6x2 b. 9x2 c. 18x2 d. 8x4
What are the characteristics of mass culture?
The Commissariat established by Frederick William in Prussia became A. the overseer of the army. B. an agency of civil government. C. both a military and civil
What was the South’s greatest concern when California applied for statehood?