|
there is a small mistake in your toString() method.
public String toString(double add, double sub, double mult, double div)
{
add.toString(); <-- (mistake)
}
just typecast it into "Double" and then do whatever you want to do,like ...
public String toString(double add, double sub, double mult, double div)
{
(Double)add.toString(); //now "add" is an object of the type Double
}
|