Skip to content

nitin-is-me/Bank-CLI

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 

Repository files navigation

Simple CLI Bank App (Java)

This is my first Java project. I"m learning Java so I thought creating small projects would be a great start. This is a command-line banking application written in Java. It allows users to:

  • Enter their name
  • Deposit money
  • Withdraw money
  • View account info
  • Exit safely

This is a beginner-friendly project focusing on Java basics: Scanner, loops, conditionals, and OOP.


Files

  • Main.java: Contains the main app logic and menu navigation
  • Account.java: A simple class to manage account info and balance
  • BankApp.jar: The Packaged CLI app as a single executable file

How to Run

1. Compile the code

javac Main.java

2. Run the program

java Main

Or, run the .jar file:

java -jar BankApp.jar

Features

Input Name

Prompts the user to enter their name at startup.

Menu Options

1. Deposit
2. Withdraw
3. Account information
4. Exit

Input Validation

  • Prevents invalid numbers using hasNextInt()
  • Skips invalid inputs without crashing

Account Class

  • Handles deposits, withdrawals, and balance management
  • Prevents over-withdrawals

Contributions

This project is great for Java newbies (like me), so you can practice by contributing.


License

Free to use and modify. No license restrictions.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages