At Westonci.ca, we provide clear, reliable answers to all your questions. Join our vibrant community and get the solutions you need. Ask your questions and receive accurate answers from professionals with extensive experience in various fields on our platform. Explore comprehensive solutions to your questions from a wide range of professionals on our user-friendly platform.

How to get an object from a container in java.

Sagot :

khgvyy
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.