Java Program #34 - Make a Simple Calculator Using Switch Case in Java

preview_player
Показать описание
Java Program to Make a Simple Calculator Using Switch Case | Programming for Beginners
In this video by Programming for Beginners we will learn to write Java Program to Make a Simple Calculator Using Switch Case, using Java Tutorial videos.
In this program, you'll learn to make a simple calculator using switch case in Java.
This calculator would be able to add, subtract, multiply and divide two numbers.

For example:
1 - Add
2 - Subtract
3 - Multiply
4 - Divide
Choose Operator: 1
Enter first number: 10
Enter second number: 20
Result is : 30

==========

Java Tutorial for Beginners Playlist:

All Java Programs Playlist:

We can learn Java Programming language to make web applications or mobile applications for android phones and several other applications for windows, Mac OS and Unix operating systems. Also we can make android applications using Java programming. The concepts covered will be related to basic java and core java that will help you in your next interview questions. You can use any version of Java but all concepts will be same for all java versions. I will be using Java SE 8.
Java is a high-level programming language. Java runs on a variety of platforms, such as Windows, Mac OS, and the various versions of UNIX.
Java is a MUST for students and working professionals to become a great Software Engineer specially when they are working in Software Development Domain.

Java JDK:
Eclipse IDE:

YouTube Gears:

#JavaProgram #JavaTutorial #Programming #Java

============================
LIKE | SHARE | COMMENT | SUBSCRIBE

Thanks for watching :)
Рекомендации по теме
Комментарии
Автор

Watch more such videos in below playlist:

programmingforbeginners
Автор

This helped me understand switches more thx bro

Hinoligy
Автор

Your explanation is very good keep going : )

me_master_meme
Автор

Write a program for calculators in java which performs addition, subtraction, multiplication and division of any two numbers. Take user input using Scanner class and print the results of every calculation.
do it

SHIVAMKUMARSHARMA-psgl
Автор

Wahh.... Brilliant job... Nice explanation.. Keep it up 💯👏

nikhee
Автор

Thanks for the video it helped me a lot ❤️

khushisingh
Автор

Bro you made a mistake which was in 4th operator. You have to put n2=0 System.out.println ("invalid");
Or other things words like that

ilyosshoniyozov
Автор

Is it necessary to write result =0, can't we just start from switch

Idealbruda
Автор

Dont we need to return the value of result or is it restricted in switch statement?

showme
Автор

bro how to give continuous input without running programe again and again

hasthapurammonuninni
Автор

how can the program should keep on executing automatically after onetime completion plz let me know

hrushikeswarareddy
Автор

Can you tell me how to use multiple operators

jykseor
Автор

If I choose division and entered two nos as 35 and 45 then it gives me result as 0
Please explain

selfsufficient
Автор

you should consider that you cannot divide by 0

SladeBuffet
Автор

thank you so much. it helps me a lot..

kaiumalrafi