filmov
tv
Java Programming Tutorial - Building a Basic Calculator

Показать описание
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
#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
Комментарии