This is a simple Calculator program in Java designed for beginners.
It allows users to perform basic arithmetic operations like:
- โ Addition
- โ Subtraction
- โ๏ธ Multiplication
- โ Division
The program uses Scanner for user input and a switch statement to select operations.
Hello! I am Muhammad Saqlain Shoukat also known as Dark Wolf founder and developer of Coding Chat Room, a passionate learner and creator in the field of Web Development, Cybersecurity, Programming, and DevSecOps.
๐น My mission is to make complex technical concepts simple and easy so that students and professionals can learn without confusion.
๐น On my platforms, I share tutorials, study notes, and practical tips about Linux, Ethical Hacking, Development, Programming and Cybersecurity.
๐น I believe in learning by sharing โ the more we teach, the more we grow.
Calculator.javaโ Main program file
- Save the file as
Calculator.java - Open terminal / command prompt in the project folder
- Compile the program:
javac Calculator.java- Run the program:
java CalculatorEnter 1st Number: 10
Enter 2nd Number: 5
Choose Operation:
1. Addition
2. Subtraction
3. Multiplication
4. Division
Your choice: 1
Result: 10 + 5 = 15
If you found this helpful and want to learn more about web development, programming, and resources, follow me here and Star this Resporatory:
- ๐ฅ YouTube: Coding Chat Room
- ๐ธ Instagram: @codingchatroom
- ๐ป GitHub: Saqlain Web Developer
๐ก I share tutorials, tips, and resources to make learning cybersecurity and coding easier.
Donโt forget to subscribe & follow for more updates and Star this Resporatory ๐
A beginner-friendly Java project to learn user input, conditionals, and switch-case.