Java Programming Tutorial - Building a Basic Calculator

preview_player
Показать описание
Java Tutorial - This video will help you in understanding that how you can create a simple Calculator. We will develop/Create this calculator using the Java switch case. This Calculator will be able to preform operation like, +, -, *, / of any entered number from the user. WATCH NOW
#JAVA #Calculator #JavaTutorials
Code For The Calculator :
----------------------------------------
public class Calculator{
public static void main (String[] args){
double num1;
double num2;
char operators;
double Result;

switch(operators){
case '+' :Result= num1+num2;
break;
case '-' :Result= num1-num2;
break;
case '*' :Result= num1*num2;
break;
case '/' :Result= num1/num2;
break;
return;
}
}
}
----------------------------------------
Agenda for the video:
Java Programming Tutorial - simple calculator
Basic Calculator using switch case in java,
Calculator using switch
Usage of Scanner Class
How to create objects in java
Use of switch case

►Check the Java playlist here:

Follow Us On Social Media

Рекомендации по теме
Комментарии
Автор

Find the code in the description. Enjoy the video.

Arfisto
Автор

Woooow!!! I really learnt alot. Thanks javá. Please keep it up. Cant wait for the next one.🇳🇦

alpocarth
Автор

Very good video, but can I know why did you put( return; )in the of the switch?

abdomesbahi