I'm trying to code in java a pet project using the periodic table. What's the best/efficient way to make a data set out of periodic element properties. Should I make a class of all the elements individually? or make an array or objects?
Initial plan was to just create redundant classes with properties for each individual element. (ex. class for hydrogen, class for carbon, class for nitrogen... etc). with each class having attributes such as atomic number, weight, name, etc.. It's a lot of work, but wondering if there are efficient ways lol. The goal is to make this as modular as possible so i can add more property values or conditions if I choose to do so
I am pretty new to java, so please suggest anything. Also let me know if someone has already done this or has made a library for this. :)