The Bike Rental System is a straightforward Java application designed to facilitate the process of renting and returning bikes for users. This project includes two versions: a Graphical User Interface (GUI) version for those who prefer a visual interface, and a Command-Line Interface (CLI) version for users who are more comfortable with terminal commands.
- Graphical User Interface (GUI): Offers an intuitive graphical interface where users can rent or return bikes by clicking buttons and filling out text fields.
- Command-Line Interface (CLI): Provides a simple command-line interface suitable for users accustomed to terminal usage.
- Dynamic Inventory Management: Real-time tracking of the current number of available bikes.
- Cost Calculation: Automatically calculates the rental cost based on the rental duration.
Ensure your machine has the Java Development Kit (JDK) installed, version 1.8 or higher.
- Clone the repository to your local machine:
git clone https://github.com/yourusername/bike-rental-system.git
- Navigate to the project directory:
cd bike-rental-system
- To run the GUI version:
javac GUI.java java GUI
- To run the CLI version:
javac rentalBike.java java rentalBike
- For the GUI version: Launch the application and follow the on-screen prompts.
- For the CLI version: Launch the application and follow the instructions in the console.
December 2021