Should I Store One ArrayList Per File Or Should I Store All My ArrayList In The Same File?
I'm doing my first Mobile App and i have been studying java for about 2 weeks now so i'm pretty new. The app that i'm trying to make is a grocery list app. Basically, I want to sor
Solution 1:
When you're doing or learning something new, do whatever works for you. Consider trying to do both, as it's experience you'll gain for future.
Some general things to take note of though :
- Storing all items in one file could potentially create one massive file (regardless of the project you're working on, im generalizing now)
- Storing items in different files increases the overhead of having to handle and manage different files.
These are things you will have to consider and things you'll learn from experience, based on the project and various different aspects.
For the sake of this question, I think storing different items in different files would potentially be a better, simpler solution for now, but it really depends on the entire project and how you plan to implement it. Hope this at least somewhat answers your question. Happy coding and happy learning
Post a Comment for "Should I Store One ArrayList Per File Or Should I Store All My ArrayList In The Same File?"