├── .classpath
├── .gitignore
├── .project
├── .settings
├── org.eclipse.core.resources.prefs
└── org.eclipse.jdt.core.prefs
└── src
└── Bank_Application
├── BankInfo.java
├── Main.java
├── Operation.java
└── procces.java
/.classpath:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/.gitignore:
--------------------------------------------------------------------------------
1 | /bin/
2 |
--------------------------------------------------------------------------------
/.project:
--------------------------------------------------------------------------------
1 |
2 |
3 | Bank_Application
4 |
5 |
6 |
7 |
8 |
9 | org.eclipse.jdt.core.javabuilder
10 |
11 |
12 |
13 |
14 |
15 | org.eclipse.jdt.core.javanature
16 |
17 |
18 |
19 | 1679020280817
20 |
21 | 30
22 |
23 | org.eclipse.core.resources.regexFilterMatcher
24 | node_modules|\.git|__CREATED_BY_JAVA_LANGUAGE_SERVER__
25 |
26 |
27 |
28 |
29 |
--------------------------------------------------------------------------------
/.settings/org.eclipse.core.resources.prefs:
--------------------------------------------------------------------------------
1 | eclipse.preferences.version=1
2 | encoding/=UTF-8
3 |
--------------------------------------------------------------------------------
/.settings/org.eclipse.jdt.core.prefs:
--------------------------------------------------------------------------------
1 | eclipse.preferences.version=1
2 | org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled
3 | org.eclipse.jdt.core.compiler.codegen.targetPlatform=18
4 | org.eclipse.jdt.core.compiler.codegen.unusedLocal=preserve
5 | org.eclipse.jdt.core.compiler.compliance=18
6 | org.eclipse.jdt.core.compiler.debug.lineNumber=generate
7 | org.eclipse.jdt.core.compiler.debug.localVariable=generate
8 | org.eclipse.jdt.core.compiler.debug.sourceFile=generate
9 | org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
10 | org.eclipse.jdt.core.compiler.problem.enablePreviewFeatures=disabled
11 | org.eclipse.jdt.core.compiler.problem.enumIdentifier=error
12 | org.eclipse.jdt.core.compiler.problem.reportPreviewFeatures=warning
13 | org.eclipse.jdt.core.compiler.release=enabled
14 | org.eclipse.jdt.core.compiler.source=18
15 |
--------------------------------------------------------------------------------
/src/Bank_Application/BankInfo.java:
--------------------------------------------------------------------------------
1 | package Bank_Application;
2 |
3 | import java.util.Scanner;
4 |
5 | public class BankInfo
6 | {
7 | private String accno;
8 | private String name;
9 | private String acc_type;
10 | private long balance;
11 |
12 |
13 | public String getName()
14 | {
15 | return name;
16 | }
17 | public void setName(String name)
18 | {
19 | this.name = name;
20 | }
21 | public long getBalance()
22 | {
23 | return balance;
24 | }
25 | public void setBalance(long balance)
26 | {
27 | this.balance = balance;
28 | }
29 | public String getAccno()
30 | {
31 | return accno;
32 | }
33 | public void setAccno(String accno)
34 | {
35 | this.accno = accno;
36 | }
37 | public String getAcc_type()
38 | {
39 | return acc_type;
40 | }
41 | public void setAcc_type(String acc_type)
42 | {
43 | this.acc_type = acc_type;
44 | }
45 |
46 | }
47 |
--------------------------------------------------------------------------------
/src/Bank_Application/Main.java:
--------------------------------------------------------------------------------
1 | package Bank_Application;
2 | import java.util.Scanner;
3 |
4 | public class Main
5 | {
6 | public static void main(String[] args)
7 | {
8 | Operation operlation = new Operation();
9 | operlation.bankinfo();
10 | }
11 |
12 | }
--------------------------------------------------------------------------------
/src/Bank_Application/Operation.java:
--------------------------------------------------------------------------------
1 | package Bank_Application;
2 | import java.util.Scanner;
3 |
4 | public class Operation
5 | {
6 | public static void bankinfo()
7 | {
8 | Scanner scan = new Scanner(System.in);
9 | System.out.println(" ----------------------------------------------------------------------------------------------------------------------------------------------------------------");
10 | System.out.println(" ***Banking System Application***");
11 | System.out.println(" -----------------------------------------------------------------------------------------------------------------------------------------------------------------");
12 |
13 | System.out.println(" 1. Create a new account \n 2. Check Balance\n 3. Deposit the amount \n 4. Withdraw the amount \n 5. Watch demo account \n 6. Exit \n\nENTER YOUR CHOISE :: ");
14 | int key=scan.nextInt();
15 | operation( key);
16 |
17 |
18 | }
19 | public static void operation(int key)
20 | {
21 | BankInfo bank = new BankInfo();
22 | Scanner scan = new Scanner(System.in);
23 | procces bankprocess = new procces();
24 | switch (key)
25 | {
26 | case 1:
27 | System.out.println(" -----------------------------------------------------------------------------------------------------------------------------------------------------------------");
28 | bankprocess.openAccount();
29 | System.out.println(" -----------------------------------------------------------------------------------------------------------------------------------------------------------------");
30 | System.out.println();
31 | System.out.println("MAIN PAGE_:: PRESS 1 ::");
32 | if (scan.nextInt()==1)
33 | bankinfo();
34 | break;
35 | case 2:
36 | System.out.println(" -----------------------------------------------------------------------------------------------------------------------------------------------------------------");
37 |
38 | bankprocess.checkbalance();
39 | System.out.println();
40 | System.out.println(" -----------------------------------------------------------------------------------------------------------------------------------------------------------------");
41 | System.out.println("MAIN PAGE_:: PRESS 1 ::");
42 | if (scan.nextInt()==1)
43 | bankinfo();
44 | break;
45 | case 3:
46 | System.out.println(" -----------------------------------------------------------------------------------------------------------------------------------------------------------------");
47 | System.out.println();
48 | System.out.println("---------WELCOME TO DEPOSITE PAGE---------------- ");
49 | bankprocess.deposite();
50 | System.out.println();
51 | System.out.println(" -----------------------------------------------------------------------------------------------------------------------------------------------------------------");
52 | System.out.println("MAIN PAGE_:: PRESS 1 ::");
53 | if (scan.nextInt()==1)
54 | bankinfo();
55 | break;
56 | case 4:
57 | System.out.println(" -----------------------------------------------------------------------------------------------------------------------------------------------------------------");
58 | bankprocess.withdraw();
59 | System.out.println();
60 | System.out.println(" -----------------------------------------------------------------------------------------------------------------------------------------------------------------");
61 | System.out.println("MAIN PAGE_:: PRESS 1 ::");
62 | if (scan.nextInt()==1)
63 | bankinfo();
64 | break;
65 | case 5:
66 | System.out.println(" -----------------------------------------------------------------------------------------------------------------------------------------------------------------");
67 | bankprocess.demoaccount();
68 | System.out.println();
69 | System.out.println(" -----------------------------------------------------------------------------------------------------------------------------------------------------------------");
70 | System.out.println("MAIN PAGE_:: PRESS 1 ::");
71 | if (scan.nextInt()==1)
72 | bankinfo();
73 | break;
74 | case 6:
75 | System.out.println("THANKS FOR USING OUT BANK APPLICATION");
76 | break;
77 | }
78 | }
79 |
80 | }
--------------------------------------------------------------------------------
/src/Bank_Application/procces.java:
--------------------------------------------------------------------------------
1 | package Bank_Application;
2 | import java.util.Scanner;
3 |
4 | public class procces
5 | {
6 | Scanner sc = new Scanner(System.in);
7 | static BankInfo bank1 = new BankInfo();
8 |
9 | static
10 | {
11 | bank1.setAccno("854621348597");
12 | bank1.setName("RBL Bank");
13 | bank1.setAcc_type("Saving");
14 | bank1.setBalance(10000000);
15 |
16 | }
17 | public void openAccount()
18 | {
19 | System.out.print("Enter Account No: ");
20 | bank1.setAccno(sc.next());
21 | System.out.print("Enter Account type: ");
22 | bank1.setAcc_type(sc.next());
23 | System.out.print("Enter Name: ");
24 | bank1.setName(sc.next());
25 | System.out.print("Enter Balance: ");
26 | bank1.setBalance(sc.nextLong());
27 |
28 | System.out.println("------YOUR ACCOUNT DETAILS IS -------");
29 | System.out.println("Name of account holder :: " + bank1.getName());
30 | System.out.println("Account no :: " + bank1.getAccno());
31 | System.out.println("Account type :: " + bank1.getAcc_type());
32 | System.out.println("Balance :: " + bank1.getBalance());
33 |
34 | }
35 | public void demoaccount()
36 | {
37 | int demobalance=50000;
38 | System.out.println("Name of account holder :: " + "Demo user");
39 | System.out.println("Account no :: " + "8529637412");
40 | System.out.println("Account type :: " + "demo");
41 | System.out.println("Balance :: " + demobalance);
42 |
43 | }
44 | public void deposite()
45 | {
46 | System.out.println("Enter the Amount you want to deposit ::");
47 | int deposit =sc.nextInt();
48 | int amount =(int) ((bank1.getBalance())+deposit);
49 | bank1.setBalance(amount);
50 | System.out.println(" "+ deposit+" is deposited into your Account");
51 | System.out.println("Current Available Balance is Rs = "+ bank1.getBalance());
52 |
53 | }
54 | public void withdraw()
55 | {
56 |
57 | System.out.println("Enter the Amount you want to withdraw:");
58 | Scanner sc= new Scanner(System.in);
59 | int withdraw =sc.nextInt();
60 | if(withdraw