Java Programming Tutorial 12 - Numeric Expressions and Operators

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


~~~~~~~~~~~~~~~ CONNECT ~~~~~~~~~~~~~~~

~~~~~~~~~~~~~~ SUPPORT ME ~~~~~~~~~~~~~~

🅑 Bitcoin - 3HnF1SWTzo1dCU7RwFLhgk7SYiVfV37Pbq
🅔 Eth - 0x350139af84b60d075a3a0379716040b63f6D3853
Рекомендации по теме
Комментарии
Автор

Yes! I FINALLY now understand (X++) vs. (++X) ! Thank you @Caleb! :)

smbunation
Автор

3:57 You're not casting the whole thing into doubles like you're supposed to, (double) ((double) a / (double) 2)

flameofthephoenix
Автор

Caleb we need to know who Clair is?? What’s going on? It’s been 4 years! I have to rewatch the video just because I have adhd and I’ve been wondering about Clair the WHOLE video :/

anthonydavidson
Автор

I almost know as much about java as i do about pramp

thomasglavin
Автор

5:00 just add a couple spaces if you wanted to put the "/'" inside the comment

kreut
Автор

Hi Caleb, this is Claire. Will you PLEASE take me back? I know it's been almost 6 years now but I've never know a man who can use a floating point like you.

uebiuiq
Автор

Day 1 🙌 Done 12 out of 100, 88 more to go let's go! 🔥

hihellookay
Автор

At 3:00 would it not also be effective to declare 'x' as float variable? That way you get a quotient with a decimal point.

mossbaby
Автор

when you say "cast" i always think of tinkers construct xD!

Raffael-Tausend
Автор

Thanks much, you explain things wonderfully

justinherrera
Автор

I understand everything well, but memorisation of syntaxes and other stuff is a challenge.

erumnaushad
Автор

you can also do (a+0.0) to make it a double!

rakhin
Автор

"The most legit website since the start of the internet."

infiniteafrica
Автор

This information is all so useful. But I feel like I need a worksheet to practice it on or something. Just going video to video isn't quiet locking in this valuable information :( Does anyone know of a good website to practice coding?

DorangoBread
Автор

'Pemdas' algebra. To force precedence, use parentheses cool

celestialbeing
Автор

i made a calculator with the following code
edit : did some small fixes n the following code

import java.util.Scanner;
public class calc {
public static void main(String[] args) {
Scanner input = new Scanner(System.in);
System.out.println("Choose Among *, /, + And - : ");
char op = input.next().charAt(0);
System.out.println("Number 1 : ");
Double n1 = input.nextDouble();
System.out.println("Number 2 : ");
double n2 = input.nextDouble();
double a;
if (op == '*') {a = (double) n1 * n2;
System.out.println("The Answer Of " + n1 + op + n2 + " Is " + a);}
else if (op == '/') {a = (double) n1 / n2;
System.out.println("The Answer Of " + n1 + op + n2 + " Is " + a);}
else if (op == '+') {a = (double) n1 + n2;
System.out.println("The Answer Of " + n1 + op + n2 + " Is " + a);}
else if (op == '-') {a = (double) n1 - n2;
System.out.println("The Answer Of " + n1 + op + n2 + " Is " + a);}
else {
System.out.println("You Can Only Enter *, /, -, + Not " + op);}
}
}

PROMAN
Автор

So can precedence simply be memorized with PEMDAS?

punkterrorist
Автор

You can divide the leftover pizza into two slices.
hmph
Waste of good pizza.

princelygeorge
Автор

When I type sysout it doenst change it to System.out.println

flooberr
Автор

Do Java FX i have my own project for that and for myself only

jaybergonia