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.
Main.java
: Contains the main app logic and menu navigationAccount.java
: A simple class to manage account info and balanceBankApp.jar
: The Packaged CLI app as a single executable file
javac Main.java
java Main
Or, run the .jar
file:
java -jar BankApp.jar
Prompts the user to enter their name at startup.
1. Deposit
2. Withdraw
3. Account information
4. Exit
- Prevents invalid numbers using
hasNextInt()
- Skips invalid inputs without crashing
- Handles deposits, withdrawals, and balance management
- Prevents over-withdrawals
This project is great for Java newbies (like me), so you can practice by contributing.
Free to use and modify. No license restrictions.