Skip to content

saqlainwebdeveloper/java-calculator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

1 Commit
ย 
ย 
ย 
ย 

Repository files navigation

๐Ÿงฎ Java Calculator Project

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.


๐Ÿ‘จโ€๐Ÿ’ป Author Introduction

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.


๐Ÿ“‚ Project Structure

  • Calculator.java โ†’ Main program file

โ–ถ๏ธ How to Run

  1. Save the file as Calculator.java
  2. Open terminal / command prompt in the project folder
  3. Compile the program:
javac Calculator.java
  1. Run the program:
java Calculator

๐Ÿ“Œ Example Run

Enter 1st Number: 10
Enter 2nd Number: 5
Choose Operation:
1. Addition
2. Subtraction
3. Multiplication
4. Division
Your choice: 1

Result: 10 + 5 = 15

๐Ÿ“š More Learning & Connect with Me

If you found this helpful and want to learn more about web development, programming, and resources, follow me here and Star this Resporatory:

๐Ÿ’ก 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.

About

This resporatory will teach you that how to make a calculator in JAVA. This is good projects for JAVA Learners. You will learn JAVA from here : (https://github.com/saqlainwebdeveloper/java-in-one-file) and OOPs in JAVA from here : (https://github.com/saqlainwebdeveloper/oops-java-in-1-file)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages