-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMain.java
More file actions
35 lines (31 loc) · 1.11 KB
/
Main.java
File metadata and controls
35 lines (31 loc) · 1.11 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in, "latin1");
Gerenciamento gerenciar = new Gerenciamento();
String escolha = "";
do
{
System.out.println(
"\n------------------------------------------------------------------------------------\n[1] - Acessar conta | [2] - Criar Conta | [S] - Sair");
escolha = sc.next().toLowerCase();
switch (escolha) {
case "1":
gerenciar.Validacao();
break;
case "2":
gerenciar.CriarConta();
break;
case "s":
System.out.println("----====Encerrando Programa====----");
escolha = "N";
break;
default:
System.out.println("Insira um valor válido da próxima vez");
escolha = "";
break;
}
}while(escolha!="N");
sc.close();
}
}