Skip to content

Defeito #4 TicketMachine #4

@LimitForm1

Description

@LimitForm1

public void inserir(int quantia) throws PapelMoedaInvalidaException {
boolean achou = false;
for (int i = 0; i < papelMoeda.length && !achou; i++) {
if (papelMoeda[1] == quantia) {
achou = true;
}
}

Índice de "papelmoeda" incorreto

Metadata

Metadata

Assignees

No one assigned

    Labels

    DadosEstrutura de dados manipulada de forma incorreta

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions