-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.java
More file actions
35 lines (28 loc) · 1 KB
/
main.java
File metadata and controls
35 lines (28 loc) · 1 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.InputMismatchException;
import java.util.Scanner;
public class main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
Menu menu = new Menu();
while(true) {
try {
System.out.println("______CALCULADORA_GEOMÉTRICA______");
System.out.println("Figuras Planas [1]");
System.out.println("Figuras Espaciais [2]");
System.out.print("Digite sua escolha: ");
int escolha = sc.nextInt();
if(escolha == 1){
menu.menu_planas();
}
else if(escolha == 2){
}
else{
System.out.println("Digite uma opção válida!\n");
}
}catch(InputMismatchException e){
System.out.println("\n Digite um valor válido!\n");
}
sc.nextLine();
}
}
}