-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathApp.java
More file actions
33 lines (28 loc) · 993 Bytes
/
App.java
File metadata and controls
33 lines (28 loc) · 993 Bytes
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
import java.util.Scanner;
public class App {
public static void main(String[] args) throws Exception {
Scanner sc = new Scanner(System.in);
String valasztott = "";
do {
System.out.println("----------------------");
System.out.println("1) Program inditasa");
System.out.println("2) Nevjegy");
System.out.println("3) Kilepes");
System.out.println();
System.out.print("Valasztas: ");
valasztott = sc.nextLine();
switch(valasztott) {
case "1":
System.out.println("Program...");
//ide
break;
case "2":
System.out.println("Nevjegy...");
break;
case "3":
System.out.println("Kilepes...");
break;
}
}while(!valasztott.equals("3"));
}
}