We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 852d00b commit 56f8564Copy full SHA for 56f8564
Source Code Inspection/src/br/calebe/ticketmachine/core/TicketMachine.java
@@ -22,7 +22,7 @@ public TicketMachine(int valor) {
22
public void inserir(int quantia) throws PapelMoedaInvalidaException {
23
boolean achou = false;
24
for (int i = 0; i < papelMoeda.length && !achou; i++) {
25
- if (papelMoeda[1] == quantia) {
+ if (papelMoeda[i] == quantia) {
26
achou = true;
27
}
28
0 commit comments