-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMainClass_BookSolution.java
More file actions
53 lines (38 loc) · 1.38 KB
/
MainClass_BookSolution.java
File metadata and controls
53 lines (38 loc) · 1.38 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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
import java.util.Scanner;
public class MainClass_BookSolution {
static Scanner snr = new Scanner(System.in);
public static void main(String ar[]) {
int input;
do {
System.out
.println("=========================+++++++++++++=========================");
System.out
.println("------->>>>>>>> Welcome To Java Tutorial <<<<<<<<<-------------");
System.out
.println("===============================================================\n");
System.out
.println(" Part 1 :: Fundamentals of Programming\n");
System.out
.println(" Part 2 :: Object-Oriented Programming\n");
System.out.println(" Part 3 :: GUI Programming \n");
System.out
.println(" Part 4 :: Data Structures and Algorithms\n");
System.out.println(" Part 5 :: Advanced Java Programming\n");
System.out
.println("~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n");
System.out.println(" Enter Part Number :: Enter 0 for Exit ");
input = snr.nextInt();
switch (input) {
case 1:
Part1 prt1 = new Part1();
prt1.Part1Display();
break;
case 2:
Part2_Object_Oriented_Programming prt2 = new Part2_Object_Oriented_Programming();
prt2.Part2_Display();
break;
}
} while (input != 0);
System.out.println("You have selected Exit, Thank you.");
}
}