Java Tutorial For Beginners 6 - Math and Arithmetic Operators in Java

preview_player
Показать описание

★★★Top Online Courses From ProgrammingKnowledge ★★★

★★★ Online Courses to learn ★★★

★★★ Follow ★★★

DISCLAIMER: This video and description contains affiliate links, which means that if you click on one of the product links, I’ll receive a small commission. This help support the channel and allows us to continue to make videos like this. Thank you for the support!

Java - Basic Operators
Basics of the Java operators
Searches related to java math operators
java math class
java math operators power
java math operators exponential
java math functions
java square root
java not equal to operator
java math division remainder
java arithmetic operators order
Assignment, Arithmetic, and Unary Operators
Basics of the Java operators
Java Or Operatoren
Java Bit Operatoren
Java Vergleichsoperatoren
Oder In Java
Java Or
Java Arithmetic Operators
Рекомендации по теме
Комментарии
Автор

Just a tip from a youtube commenter :
1. Go to youtube setting
2. Set speed at 1.5 or 1.25 as desired.
3. Enjoy watching the rest of the videos.

1.25 works great for me.

Eviscerate
Автор

You don't need to write the whole System.out.println(), You can write it as, Sysout (Ctrl+space), it will print the same. Only valid for Eclipse.

abhishekkeshari
Автор

the reason why i get interested to this this channel's tutorials is the tuter teches with interest and carefully...

NaveenKumarErroju
Автор

Fabulous.
Your teaching is very easy and understandable.
Thank you so much to teach step by step.

tariqali
Автор

It's really nice of the way you bring out the java basics orderly . ☺

zul_afluz
Автор

The concept of division is that only the integral part will be shown when it is typed using 'int'

junisangaming
Автор

great sir, thanks for this tutorials sir, a lot to learn👍👍

SmartProgramming
Автор

Superb Teaching...!!!
Watching this one can def. get a job in java company with a little bit of practice.

vaibhavdoshi
Автор

OH MY GOSH, ITS THE INDIAN TUTORIAL GUY WHO KNOWS EVERYTHING!!

maxortega
Автор

finding these tutorials very helpful... thanks

manojattri
Автор

thanks for making this tutorial i am just beginner in the field of IT and i want to knw about java coding this tutorial really helped me thanks a lot and ha increase your voice ur voice is too soft

faizKhan-wnfr
Автор

Thank you so much for your great videos! I could create my very first java program which is a calculator with this video :)))

imanahmadi
Автор

its easy to understand this because some parts are simular to c++

alembelko
Автор

Using the user enter method:


package first;
import java.util.Scanner;
public class MyProgram{
public static void main(String[] args) {
int x, y, ans;
System.out.print("PLEASE ENTER THE FIRST NUMBER : ");
Scanner a = new Scanner(System.in);
x = a.nextInt();
System.out.print("PLEASE ENTER THE SECOND NUMBER : ");
Scanner b = new Scanner(System.in);
y=b.nextInt();
ans = x+y;
System.out.println("Your required value is = " + ans);
}
}

rohan_ray
Автор

A good explanation. I didnt have question marks. Good job.

NicolasFFGG
Автор

Calculator From input user -


import java.util.*;
public class Calculator {

public static void main(String[] args) {
double x, y, add1, sub1, mul1, div1;

//Input value
Scanner a = new Scanner(System.in);
System.out.println("Enter The first value: ");
x=a.nextDouble();
Scanner b = new Scanner(System.in);
System.out.println("Enter the second value: ");
y=b.nextDouble();

//Calculate
add1=x+y;
sub1=x-y;
if(sub1<0)
{
sub1=y-x;
}
mul1=x*y;
div1=x/y;

//Output

System.out.print(add1);

System.out.print(sub1);

System.out.print(mul1);

System.out.print(div1);


}

}

nirajdeshmukh
Автор

Amazing ..Thanks for sharing valuable and useful information ..God Bless :)

Rimo
Автор

i understand very well thank you very much

vaijayantimahajan
Автор

Really wonderful and very helpful for me

hrushikeshkachgunde
Автор

thank you so much for your explanation

navaaztantra
welcome to shbcf.ru