Working in Eclipse IDE, values that should equal not equal : <p>I am reasonably experienced with programming, but not specifically in Java. I am coming across the following error when working in eclipse. My code is the following:</p>

<p><a href="https://i.stack.imgur.com/5gqc3.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/5gqc3.png" alt="My code"></a></p>

<p>I have used the debug function, and it reports that carbonPrefix is pent, but that carbon stays at 0 throughout. Like I said, I am a novice to Java and Eclipse, so I may not be using the debug function to it's full extent. </p>

<p>For anybody that's interested, this the start of code where you input the name of an alkane and it tells you the formula. It worked in Javascript and I'm just trying to translate it into Java.</p>

<p>Thank you all so much!</p>
