Suppose that the 'BankAccount' class contains method with the header
public boolean isOverDrawn( )
which returns true if this BankAccount is overdrawn and false otherwise. Write Java code for a static method that has a single formal parameter called accountsArray of type BankAccount [ ] and returns the number of overdrawn accounts in accountsArray.
public boolean isOverDrawn( )
which returns true if this BankAccount is overdrawn and false otherwise. Write Java code for a static method that has a single formal parameter called accountsArray of type BankAccount [ ] and returns the number of overdrawn accounts in accountsArray.