We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3102549 commit 6ac3cc9Copy full SHA for 6ac3cc9
src/model/Conta.java
@@ -72,7 +72,7 @@ public String getNumero() {
72
*/
73
74
public boolean checaSaldo(double saque) {
75
- if (this.saldo > saque) {
+ if (this.saldo >= saque) {
76
return true;
77
}
78
return false;
src/view/App.java
@@ -21,7 +21,7 @@ public static void main(String[] args) {
21
cli.addConta(conta1);
22
System.out.println("Nome: " + cli.getNome() + " Numero Agencia: " + cli.getConta().get(1).getNumero());
23
conta1.depositar(20);
24
- conta1.sacar(30);
+ conta1.sacar(20);
25
26
27
0 commit comments