Skip to content

Return incorretos #3

@fVaroli

Description

@fVaroli

Classe Troco - Linha 63 , 66

<<< public boolean hasNext() {
for (int i = 6; i >= 0; i++) {
if (troco.papeisMoeda[i] != null) {
return true;
}
}
return false; >>>

If deveria chamar o return False quando existisse algum valor nulo.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions