Ok, well what specifically about the if/else statement is confusing? What are you needing to do?

In JAVA, we have a very rich API. One notable class is the Math Class(Math (Java Platform SE 6)). ...