Purchase Solution

debug java exercise program

Not what you're looking for?

Ask Custom Question

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

Purchase this Solution

Solution Summary

Help to debug java exercise program is included.

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 ...

Purchase this Solution


Free BrainMass Quizzes
Inserting and deleting in a linked list

This quiz tests your understanding of how to insert and delete elements in a linked list. Understanding of the use of linked lists, and the related performance aspects, is an important fundamental skill of computer science data structures.

C++ Operators

This quiz tests a student's knowledge about C++ operators.

Word 2010: Tables

Have you never worked with Tables in Word 2010? Maybe it has been a while since you have used a Table in Word and you need to brush up on your skills. Several keywords and popular options are discussed as you go through this quiz.

Javscript Basics

Quiz on basics of javascript programming language.

Basic Networking Questions

This quiz consists of some basic networking questions.