JAVA1
JAVA1
annexure-II
Micro-Project Report
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
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.
5. Exit
Code
JAVA
import java.util.Scanner;
class BankDetails {
private String accno;
accno = sc.next();
acc_type = sc.next();
name = sc.next();
balance = sc.nextLong();
long amt;
amt = sc.nextLong();
}
//method to withdraw money
long amt;
amt = sc.nextLong();
} else {
tTransaction failed...!!" );
if (accno.equals(ac_no)) {
showAccount();
return (true);
return (false);
");
int n = sc.nextInt();
C[i].openAccount();
int ch;
do {
Account number\n 3. Deposit the amount \n 4. Withdraw the amount \n 5.Exit ");
ch = sc.nextInt();
switch (ch) {
case 1:
C[i].showAccount();
break;
case 2:
search: ");
found = C[i].search(ac_no);
if (found) {
break;
if (!found) {
System.out.println("Search failed! Account doesn't
exist..!!");
break;
case 3:
ac_no = sc.next();
found = false;
found = C[i].search(ac_no);
if (found) {
C[i].deposit();
break;
if (!found) {
exist..!!");
break;
case 4:
ac_no = sc.next();
found = false;
found = C[i].search(ac_no);
if (found) {
C[i].withdrawal();
break;
}
}
if (!found) {
exist..!!");
break;
case 5:
break;
Output 1
Output 2
2. Communication skills