I have a periodic table which I coded in java and i'm working on creating simple compounds (only binary compounds) and returning information about them, but I'm having trouble with turning a chemical formula into the IUPAC name. I have it setup so that a person can click on an element on the periodic table and then click on another element, and then a window would pop up displaying possible compounds that could be created from those two elements. These compounds would be displayed as chemical formulas such as CO2 or CH4. I want to be able to convert the chemical formula of the compound that someone picked into the iupac name so it can be displayed with the other information.
I attempted to use the chemistry development kit, but I honestly don't have much of an idea of how to use it and even if it can be applicable in fixing my issue. It makes me put in the bond types manually, which seems like a ton more work than I should be bargaining for.
For example: CO2 would output Carbon Dioxide and CH4 would output Methane.