So I'm making a Unit Converter which will be able to convert 43 different type of units (temperature, currency, volume, mass, length, speed) to any of the 43 types. But right now I'm a little unsure on how to proceed. I'm up to the part where the actual converting happens (doing this all using JFrames btw), and I'm not sure if I need to make 1849 if statements (43*43) for each possible combination of units, or if there's a simpler way. There must be a simpler way but I don't know it because I'm really a beginner at Java. So anyway, I would appreciate any ideas!