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 March 4, 2021, 5:37 pm ad1c9bdddf
    https://brainmass.com/computer-science/java/debug-java-exercise-program-2714

    Attachments

    Solution Preview

    I have renamed Fan.java to TestFan2.java, as it seems to be a test class for the Fan class.
    <br>
    <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>
    <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.

    $2.49

    ADVERTISEMENT