Originally Posted by
CirKuT
private static Account[] accounts = new Account[MAX_ACCOUNTS];
public coldbeveragejava.Account getAcount(int accountID) {
System.out.println("Entering AccountRepository getAcount");
return accounts[accountID];
}
private static Account[] accounts = new Account[MAX_ACCOUNTS];
public coldbeveragejava.Account getAcount(int accountID) {
if (accountID == accounts);
return accounts[accountID];
}//This gives me a message stating incomparable types
Why are you using different definitions for "Account" in your code?
You have
private static Account[] accounts ...
and
public coldbeveragejava.Account getAcount(...
Why "coldbeveragejava.Account" in one place and "Account" in another? Use the same words, exactly in both places