Hi there,
This is my first post so please forgive me and try to guide me if I have posted in the wrong area.
My question is, given that in core java, with no access to libraries or collections what would be the best approach to storing product data i.e. a mixture of types meaning String data Boolean data and Integer or double data and what data structure would be the most suitable to store the aforementioned data as data objects.
For instance, say I want to create and store the following as an object, integer productId, String productName, boolean inStock. How to create the object and then what data structure is best for storing these objects? I would need to add, delete, insert new objects as well.
I would also need to sort the data in some sort of order perhaps by productId or by inStock so another question is what is the approach considering that the data fields are in an object.
Is it possible to write a method to sort the data that is stored in an object of differing types.
Regards,
Ironoverload (feToHigh)