MCPcopy Create free account
hub / github.com/KrishGaur1354/Java-Projects-for-Beginners / menu

Method menu

Bank-Statement/Statement.java:26–65  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

24
25
26 void menu() {
27 int option;
28 System.out.println("Welcome " + nam);
29
30 do {
31 System.out.println("=====================================================");
32 System.out.print("Enter your Account No: ");
33 option = stat.nextInt();
34 System.out.println("=====================================================");
35
36 switch (option) {
37 case 1 -> {
38 System.out.println("======================================================");
39 System.out.println("Balance: 10000 ");
40 System.out.println("======================================================");
41 System.out.println("\n");
42 }
43 case 2 -> {
44 System.out.println("======================================================");
45 System.out.println("Balance: 20000 ");
46 System.out.println("======================================================");
47 System.out.println("\n");
48 }
49 case 3 -> {
50 System.out.println("======================================================");
51 System.out.println("Balance: 30000 ");
52 System.out.println("======================================================");
53 System.out.println("\n");
54 }
55 case 4 -> {
56 System.out.println("======================================================");
57 System.out.println("Balance: 50000 ");
58 System.out.println("======================================================");
59 System.out.println("\n");
60 }
61 default -> System.out.println("Invalid Account Number");
62 }
63 } while(option == 0);
64 System.out.println("Kindly Re-Run to View Details about other account");
65 }
66}

Callers 1

mainMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected