-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathLab.java
67 lines (64 loc) · 2.31 KB
/
Lab.java
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
/*
~~~~~~~~~~~~~~~~~~~~~~~~~~~
--||author : codechaser||--
~~~~~~~~~~~~~~~~~~~~~~~~~~~
*/
package java_labs.lab_5;
import java.util.*;
import java.io.*;
public class Lab {
public static void start() {
Scanner input = new Scanner(System.in);
while(true) {
System.out.println("\n\n---------------------------");
System.out.println(" | L A B 5 |");
System.out.println("---------------------------\n");
System.out.println("[01] : Problem 1");
System.out.println("[02] : Problem 2");
System.out.println("[03] : Problem 3");
System.out.println("[04] : Problem 4");
System.out.println("[05] : Problem 5\n");
System.out.println("[-1] : Exit\n");
System.out.println("---------------------------\n");
System.out.println("Enter your choice :\n");
int choice = input.nextInt();
System.out.println("\n---------------------------\n");
if (choice == -1) {
System.out.println("Exiting...\n");
System.out.println("---------------------------\n");
return;
}
switch (choice) {
case 1:
java_labs.lab_5.problem_1.Problem1.start();
break;
case 2:
java_labs.lab_5.problem_2.Problem2.start();
break;
case 3:
java_labs.lab_5.problem_3.Problem3.start();
break;
case 4:
java_labs.lab_5.problem_4.Problem4.start();
break;
case 5:
java_labs.lab_5.problem_5.Problem5.start();
break;
default:
System.out.println("\nInvalid Choice");
}
System.out.println("\n---------------------------\n");
}
}
public static void main(String[] args){
start();
return;
}
}
/*
|---------------------------------------------------|
||| https://codeforces.com/profile/codechaser |||
||| https://www.codechef.com/users/codechaser |||
||| https://github.com/code-chaser |||
|---------------------------------------------------|
*/