you forgot the ; on the end of the numerator statement, and unless you just haven't written the code yet, you don't need to import the java.math class, the math.pow your using is part of the java.lang package, did your teacher tell you to use it?
I don't know of any way to get input from the user other than the Scanner class, which if your import the java.util package you may as well use. the only other option I know of is to assign the variables a value yourself, and if your doing that you may as well just enter the numbers.
You also haven't declared any of the objects, that will give you a compile error.
__________________
Apathy: The best outlook this side of I don't give a damn.
|