That looks complicated, and I would suggest the Double.parseDouble() method.double transferAmount= (new Double(amount)).doubleValue();
Because he has been told to use a String[][].Angus Comber wrote:. . . Why are you passing a string to a function which is going to perform a calculation. . . .
It's still not object-oriented programming.I will let you work out the Bank and OverdraftException classes for yourself.Brian O'Connor wrote:Yeah,that's the way the teacher designed it =/