Thanks. I've done that. Here is the updated code:
public int deposit( double amount )
{
return accountbalance + amount ;
}
But I keep getting this error when I build the class:
possible loss of precision
found : double
required: int
return accountbalance + amount ;