Explore Westonci.ca, the leading Q&A site where experts provide accurate and helpful answers to all your questions. Join our Q&A platform to connect with experts dedicated to providing precise answers to your questions in different areas. Discover detailed answers to your questions from a wide network of experts on our comprehensive Q&A 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.