You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The current implementation :
public Account[] getAccounts() {
Account[] availableAccounts = new Account[size];
System.arraycopy(accounts, 0, availableAccounts, 0, size);
return availableAccounts;
}
will return an empty array when size equals 0 as the Bank will be instantiated. However this does not reflect the expected return value of the current documentation: @return the available accounts of the bank
The text was updated successfully, but these errors were encountered:
The current implementation :
public Account[] getAccounts() {
Account[] availableAccounts = new Account[size];
System.arraycopy(accounts, 0, availableAccounts, 0, size);
return availableAccounts;
}
will return an empty array when size equals 0 as the Bank will be instantiated. However this does not reflect the expected return value of the current documentation: @return the available accounts of the bank
The text was updated successfully, but these errors were encountered: