Skip to content

Commit 6ac3cc9

Browse files
committed
corrigido saldo=saque
1 parent 3102549 commit 6ac3cc9

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/model/Conta.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ public String getNumero() {
7272
*/
7373

7474
public boolean checaSaldo(double saque) {
75-
if (this.saldo > saque) {
75+
if (this.saldo >= saque) {
7676
return true;
7777
}
7878
return false;

src/view/App.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ public static void main(String[] args) {
2121
cli.addConta(conta1);
2222
System.out.println("Nome: " + cli.getNome() + " Numero Agencia: " + cli.getConta().get(1).getNumero());
2323
conta1.depositar(20);
24-
conta1.sacar(30);
24+
conta1.sacar(20);
2525
}
2626

2727
}

0 commit comments

Comments
 (0)