Explore BrainMass

Explore BrainMass

    debug java exercise program

    Not what you're looking for? Search our solutions OR ask your own Custom question.

    This content was COPIED from BrainMass.com - View the original, and get the already-completed solution here!

    The attached java file test.java and its client program
    TestFan.java throw up many errors when I try to compile

    Please help me to debug

    © BrainMass Inc. brainmass.com December 24, 2021, 4:42 pm ad1c9bdddf


    Solution Preview

    I have renamed Fan.java to TestFan2.java, as it seems to be a test class for the Fan class.
    <br>I don't know if you have an actual Fan class itself, but I have created a sample one to show that the TestFan and TestFan2 classes will work.
    <br>I've used the naming conventions you took in TestFan2.java in the new Fan.java, and altered the ones in TestFan.java to match. However, you were referring to constants that did not ...

    Solution Summary

    Help to debug java exercise program is included.