Skip to content

Troco - Loop  #5

@nicoleprevid

Description

@nicoleprevid

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

o loop deve parar em 0, não em -1

Metadata

Metadata

Assignees

No one assigned

    Labels

    ComissãoOcorre quand existe algum segmento de código que foi implementado incorretamente

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions