Welcome, guest! Login / Register - Why register?
Psst.. new poll here.
Psst.. new forums here.
Microsoft is blocking us again (TY IP Reputation!) so just use oauth login instead. :)

Paste

Pasted as Java by dardies ( 14 years ago )
public String findHighest (BankAccount[] accList)
    {
        int highest = 0;
        int x = 0;
        for (int i = 0; i < accList.length; i++){
            if(accList[i].getBalance() > highest){
                highest = accList[i].getBalance();
                x = i;
            }
        }
        return accList[x].getAccName();
    }

 

Revise this Paste

Children: 50582
Your Name: Code Language: