MITTHULALJI SARDA
POLYTECHNIC BEED,
MAHARASHTRA, 431122
Micro Project On
“ Banking Application In Java ”
Submitted By
Surwase om balasaheb
Under The Guidance Of
Miss. Jadav S.S
For The Subject
Java Programming (22412)
Department Of
Computer Science And Engineering
2024-25
CERTIFICATE
This is to certify that surwase om balasaheb from Mitthulalji
Sarda Polytechnic Beed Institute Having Enrollment no. 2214920334
has completed Micro Project of second year Java Programminng
(22412) subject having Title Banking Application In Java during
academic year 2024-2025 The project completed by Student under the
guidance of the faculty Miss. Jadav S.S
Name and signature of guide ……………………................................
INDEX
Sr.no chapters Page.n
o
1. Introduction 01
2. Aim of the 02
project
3. Resources Used 03
4. Code 05
5. Output of code 13
6. Skill developed 14
Annexure-I
AMICROPROJECTON "Banking Application in Java"
1.0 Aims/Benefits ofthe microproject
● To learn basic java programming for making applications.
● To get Information about java programming syntax.
● Gain Knowledge about how to make banking applications in
java.
2.0 Course outcome addressed.
4 DevelopprogramsusingObjectOrientedmethodologyinJava.
3.0 Proposed methodology
1. Focusedontheselection ofanappropriatetopic forthemicro-project.
2. Select the topic i.e. To Prepare a report on a mini-banking
application inJava.
3. Briefstudyon ourtopic.
4. Gatherallinformationbasedonthetopicofthemicroproject.
5. Analysisandstudyofourtopicindetail.
6. Followingalltheabovemethodologieswesuccessfullycomplete
4.0 Action Plan
5.0 Resources used
annexure-
IIMicro-
ProjectReport
A MICRO PROJECT ON "Banking Application in Java"
1.0 Brief Introduction/Rationale
Java is platform independent, open-source object-oriented programming
language enriched with free and open-source libraries. In the current
industrial scenario, Java has broad industry support and is a prerequisite
with many allied technologies like Advanced Java, Java Server Pages, and
Android Application Development. Thus, current industrial trends necessitate
acquiring Java knowledge for Computer Engineering and Information
Technology graduates. This course develops the necessary skills in students
to apply object-oriented programming techniques in Java so that students
will be able to develop complete applications using core Java.
MiniBankingApplicationUsingJavaProgramming
we will understand how to develop a mini-application for a banking system in
Java. In this program, we will add some basic functionalities of a bank
account like a deposit of amount, withdrawal of amount, etc.
Originally, the program accepts the number of customers we require to add
and adds the customer and account details thus. Further, it displays a series
of menus to work over the accounts.
The series of menus displayed are as follows:
1. Display all account details
2. Search by account number
3. Deposit the amount
4. Withdraw the amount
5. Exit
JAVA CODE
import java.util.Scanner;
class BankDetails {
private String accno;
private String name;
private String acc_type;
private long balance;
Scanner sc = new Scanner(System.in);
//method to open new account
public void openAccount() {
System.out.print("Enter Account No: ");
accno = sc.next();
System.out.print("Enter Account type: ");
acc_type = sc.next();
System.out.print("Enter Name: ");
name = sc.next();
System.out.print("Enter Balance: ");
balance = sc.nextLong();
}
//method to display account details
public void showAccount() {
System.out.println("Name of account holder: " + name);
System.out.println("Account no.: " + accno);
System.out.println("Account type: " + acc_type);
System.out.println("Balance: " + balance);
//method to deposit money
public void deposit() {
long amt;
System.out.println("Enter the amount you want to deposit: ");
amt = sc.nextLong();
balance = balance + amt;
}
//method to withdraw money
public void withdrawal() {
long amt;
System.out.println("Enter the amount you want to withdraw: ");
amt = sc.nextLong();
if (balance >= amt) {
balance = balance - amt;
System.out.println("Balance after withdrawal: " + balance);
} else {
System.out.println("Your balance is less than " + amt + "\tTransaction failed...!!" );
//method to search an account number
public boolean search(String ac_no) {
if (accno.equals(ac_no)) {
showAccount();
return (true);
}
return (false);
public class BankingApp {
public static void main(String arg[]) {
Scanner sc = new Scanner(System.in);
//create initial accounts
System.out.print("How many number of customers do you want to input? ");
int n = sc.nextInt();
BankDetails C[] = new BankDetails[n];
for (int i = 0; i < C.length; i++) {
C[i] = new BankDetails();
C[i].openAccount();
}
// loop runs until number 5 is not pressed to exit
int ch;
do {
System.out.println("\n ***Banking System Application***");
System.out.println("1. Display all account details \n 2. Search by Account number\n 3. Deposit the
amount \n 4. Withdraw the amount \n 5.Exit ");
System.out.println("Enter your choice: ");
ch = sc.nextInt();
switch (ch) {
case 1:
for (int i = 0; i < C.length; i++) {
C[i].showAccount();
break;
case 2:
System.out.print("Enter account no. you want to search: ");
String ac_no = sc.next();
boolean found = false;
for (int i = 0; i < C.length; i++) {
found = C[i].search(ac_no);
if (found) {
break;
if (!found) {
System.out.println("Search failed! Account doesn't exist..!!");
break;
case 3:
System.out.print("Enter Account no. : ");
ac_no = sc.next();
found = false;
for (int i = 0; i < C.length; i++) {
found = C[i].search(ac_no);
if (found) {
C[i].deposit();
break;
if (!found) {
System.out.println("Search failed! Account doesn't exist..!!");
break;
case 4:
System.out.print("Enter Account No : ");
ac_no = sc.next();
found = false;
for (int i = 0; i < C.length; i++) {
found = C[i].search(ac_no);
if (found) {
C[i].withdrawal();
break;
if (!found) {
System.out.println("Search failed! Account doesn't exist..!!");
break;
case 5:
System.out.println("See you soon...");
break;
while (ch != 5);
}
2.0 Actual Resources Use
3.0 Skill Developed
1. Teamwork
2. Communication skills
3. Successfully created a mini banking application using Java programming.
4.0 Outputs of the Micro-Project
INTRODUCTI
ON
What is Java?
Java is a popular programming language, created in 1995.
It is owned by Oracle, and more than 3 billion devices run Java.
It is used for:
● Mobile applications (specially Android apps)
● Desktop applications
● Web applications
● Web servers and application servers
● Games
● Database connection
● And much, much more!
Why Use Java?
● Java works on different platforms (Windows, Mac, Linux, Raspberry Pi,
etc.)
● It is one of the most popular programming languages in the world
● It has a large demand in the current job market
● It is easy to learn and simple to use
● It is open-source and free
● It is secure, fast and powerful
● It has huge community support (tens of millions of developers)
● Java is an object oriented language which gives a clear structure to
programs and allows code to be reused, lowering development costs
● As Java is close to C++ and C#, it makes it easy for programmers to
switch to Java or vice versa