What do you expect your code, here, to do?
public coldbeveragejava.Account getAcount(int accountID) {
if (accountID == accounts);
return accounts[accountID];
}
Its got bugs, and I'm not going to point out what they are. This is homework, you have to do the homework to learn