This repository contains a simple calculator project developed as part of my college coursework. It's a straightforward Java application managed with Maven.
The primary purpose of this project is to demonstrate basic Java programming and to gain hands-on experience with Maven, a critical tool for Java projects.
- Java: The main programming language used.
- Maven: Used for project management and to handle dependencies.
- Maven Compiler Plugin: Configured to compile Java sources with Java 8.
Calculator.java: Contains theCalculatorclass responsible for the arithmetic logic, specifically adding two numbers.Main.java: The entry point of the application, utilizing theCalculatorclass.pom.xml: Maven Project Object Model file that includes all configuration settings, dependencies, and project version.
To run this project, ensure you have Java and Maven installed on your machine. Follow these steps:
- Clone this repository.
- Navigate to the project directory.
- Run the following commands:
mvn clean install java -cp target/calculator-1.0-SNAPSHOT.jar Main
This will compile the project and run the main application, outputting the result of the calculator's operation.