This is a simple Java calculator.
![calculator](https://private-user-images.githubusercontent.com/153938106/290899381-6a149d3a-d469-4965-9cfd-f9fa91e775bd.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjQ2OTQzNDEsIm5iZiI6MTcyNDY5NDA0MSwicGF0aCI6Ii8xNTM5MzgxMDYvMjkwODk5MzgxLTZhMTQ5ZDNhLWQ0NjktNDk2NS05Y2ZkLWY5ZmE5MWU3NzViZC5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjQwODI2JTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI0MDgyNlQxNzQwNDFaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT1jYmYzODlkYWNiMTZmMWUzZTU2ZjMxOTNjM2E0NDM1ZDc3ZWIwZGI3NmY5ZTQ4YTkwOTcwMjhkNGE3YjEwOTc2JlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCZhY3Rvcl9pZD0wJmtleV9pZD0wJnJlcG9faWQ9MCJ9.iXdgZBnHsLya-_fGt1XVzymwrcZ7PKwV1sCREGv332w)
- Make sure Java is in your PATH on your system.
You can simply check this by opening cmd or PowerShell and type:
java --version
How to add Java to PATH: https://www.java.com/en/download/help/path.html
-
Open cmd or PowerShell and compile main.java:
javac main.java
-
Run the calculator by typing:
java main.java
-
Click on the on button.
-
Do your calculations and enjoy.