Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
2c
//'main' method must be in a class 'Rextester'. //openjdk version '11.0.5' //Lokesh reddy 7002 import java.util.*; class Rextester { static Scanner in = new Scanner( System.in); static int choice; public static void main(String args[]) { System.out.println("Welcome to POWERED AIR Customer Service\n How can we help you!\n"); while (true) { System.out.println("1.Know my balance\n2.Know my validity date\n3.Know number of free call available\n4.MORE\n5.EXIT\n Please Enter Your Choice:\n"); choice = in.nextInt(); switch(choice) { case 1: { System.out.println("Your current balance is Rs.0.93"); break; } case 2: { System.out.println("Your current balance is expired in 10/12/2020"); break; } case 3: { System.out.println("You have unlimited calls "); break; } case 4: { while(true) { System.out.println("6.Prepaid bill request\n7.Customer Preference\n8.GPRS Activation\n9.Special Message Offers\n10.Special GPRS Offers\n11.3G Activation\n12.Go back to Previous menu\nPlease Enter Your Choice:\n"); choice=in.nextInt(); switch(choice) { case 6: { System.out.println(" Ref ID475J8 Your prepaid bill has been generated successfully. You may receive an email in 3 hours or you may Paper bill in 5 days. Please use the following number as password 429AV75\n"); break; } case 7: { System.out.println("₹448 - 3GB/day+unlimited call - 28 days validity\n₹558 - 3GB/day+unlimited calls - 56 days validity\n₹599 - 2GB/day+unlimited calls - 56 days validity\n₹598 - 1.5GB/Day+unlimited calls - 84 Days validity\nFor more contact to our customer care number\n"); break; } case 8: { System.out.println("GPRS Activated Successfully...\n"); break; } case 9: { System.out.println("Rs.89 - unlimited messages - 29 days validity\nRs.69 - 0.6rs/message - 29 days validity\nRs.49 - 1rs/message - 15 days validity\n"); break; } case 10: { System.out.println("Sorry...... Currently Special GPRS Offers are not available\n"); break; } case 11: { System.out.println("3G Activated Successfully.....\n"); break; } case 12: { break; } } } } case 5: { System.out.println("Thank You"); System.exit(0); } } } } }
run
|
edit
|
history
|
help
0
JDBC with lambda
Magic No.
single_digit
Stack implementation
pow x^n
kth smallest element
1st
Using Recursion reverse the Line
innerclssss
break