-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathMain.java
More file actions
35 lines (28 loc) · 1.06 KB
/
Main.java
File metadata and controls
35 lines (28 loc) · 1.06 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
package view;
import servico.Gerenciador;
import java.util.Scanner;
public class Main {
public static void main(String[] args){
Gerenciador gerenciador = new Gerenciador();
gerenciador.preCadastro();
System.out.println("\nBEM-VINDO AO GERADOR DE RELATÓRIOS LATTES");
boolean loopMain = true;
while(loopMain) {
System.out.println(
"""
Escolha uma das opções a seguir:
1-Escolher pesquisador;
2-Gerar relatório;
3-Sair.
""");
Scanner entrada = new Scanner(System.in);
int escolhaDoUsuario = entrada.nextInt();
switch (escolhaDoUsuario) {
case 1 -> gerenciador.escolherPesquisador();
case 2 -> gerenciador.gerarRelatorio();
case 3 -> loopMain = false;
default -> System.out.println("Insira um valor válido\n");
}
}
}
}