Dream.In.Code has a policy by which we prefer to see a good faith effort on your part before providing source code for homework assignments. Please post the code you have written in an effort to resolve the problem, and our members would be happy to provide some guidance. Be sure to include a description of any errors you are encountering as well.
Please post like this:

Thank you for helping us helping you.
__________________________________________________________
Alrighty then, now that that's covered...
Theoretically, it sounds like you just need to change the name of the
result variable. Are you doing this?
java
double result;
double result = num3 - num2;
Or are you doing this?
java
double result;
result = num3 - num2;
You only have to say
double once.
This post has been edited by Locke37: 26 Jun, 2008 - 10:25 AM