No video

arithmetic expressions in Java 🧮【4 minutes】

  Рет қаралды 97,787

Bro Code

Bro Code

Күн бұрын

Пікірлер: 188
@BroCodez
@BroCodez 3 жыл бұрын
public class Main { public static void main(String[] args) { // expression = operands & operators // operands = values, variables, numbers, quantity // operators = + - * / % } }
@trickysachin
@trickysachin 2 жыл бұрын
Bro give complete
@secmastery
@secmastery 10 ай бұрын
the JOptionPane does not work for me teacher
@_Anna_Nass_
@_Anna_Nass_ 3 жыл бұрын
This is the best Java tutorial series I’ve found yet. Thank you!
@hasanaycin4126
@hasanaycin4126 2 жыл бұрын
Easy, understandable and short. Just like how it is supposed to be. Thank you Bro Code!
@SilentDims
@SilentDims 3 жыл бұрын
if your friends are double you don't need to cast to double, because if one of your variables is double, result will be double.
@notsaeed
@notsaeed 3 жыл бұрын
Exactly
@thewewguy8t88
@thewewguy8t88 Жыл бұрын
i was thinking the same thing.
@WandererSociety
@WandererSociety Жыл бұрын
Trying to learn java 17 and im trying to finish two of your videos everyday until i finish this playlist, this tutorial is the best and so simple. I've learned more from you than any other.
@theo3115
@theo3115 3 жыл бұрын
really enjoying your videos ! Keep it up -dude- *bro*
@BroCodez
@BroCodez 3 жыл бұрын
thanks for watching Theo!
@dynamic2114
@dynamic2114 3 жыл бұрын
love your content! going through the whole java playlist!
@JuliHoffman
@JuliHoffman 2 жыл бұрын
You explain these concepts in such an easy to follow way! Thank you!!
@zzambles
@zzambles Жыл бұрын
This was so helpful in such a short amount of time. Thank you
@pavelkvasnicka6856
@pavelkvasnicka6856 Жыл бұрын
This is the best Java tutorial for beginners, so you can learn Java and English in one hit. Please keep going! I vote for Java advance tutorial. Thanks a lot Bro
@omersond4891
@omersond4891 3 жыл бұрын
i really enjoy the way you teach java
@ThomasTheThermonuclearBomb
@ThomasTheThermonuclearBomb 2 жыл бұрын
This is the best Java tutorial I’ve found by far, and it’s also free. Thank you so much!
@ziyadderghazi
@ziyadderghazi 3 жыл бұрын
Best tutorials i've ever seen
@walidhffad4804
@walidhffad4804 Жыл бұрын
thank you for your tutorial
3 ай бұрын
You are very talented as a teacher. Thanks bro 🙏🏻💯.
@dllm3tommy741
@dllm3tommy741 11 ай бұрын
Thanks for your video
@cameronstout1728
@cameronstout1728 5 ай бұрын
THE BEST JAVA TUTORIALLLLLLL!!!!!!!!!!!!!!!!!!!
@Curious_Clover
@Curious_Clover 6 ай бұрын
I very much needed this for our practical quiz in Programming.
@isaac_ahana
@isaac_ahana 6 ай бұрын
This Java tutorial is very good. It's easy to follow
@RahmatullahVahdatWithCod-pl2vh
@RahmatullahVahdatWithCod-pl2vh Ай бұрын
wow brother believe me Your the best thank you Big Help with us ..!!!
@DeepakLalchandaniProfile
@DeepakLalchandaniProfile 2 жыл бұрын
I want to evaluate a mathematical expression from left to right only in Java Example : 16+10×500-3000/50 Output : 200
@familiasantosguiana4673
@familiasantosguiana4673 2 жыл бұрын
BRO YOU ARE THE BEST TEACHER AT JAVA!!!
@NotABot00101
@NotABot00101 15 сағат бұрын
dropping a comment. Thanks for the video!
@chaitydey8175
@chaitydey8175 11 ай бұрын
hello, I have a question. why do we need to cast int to double here? cause without casting it still returns the correct result. Thanks :)
@leeyionching6082
@leeyionching6082 2 ай бұрын
💖This channel si very help full for me
@stephaniehernandez3641
@stephaniehernandez3641 2 жыл бұрын
Thank you so much! Going through your entire playlist rn :)
@Techtinkerer3D
@Techtinkerer3D 7 күн бұрын
absolute legend
@anibender4822
@anibender4822 3 жыл бұрын
As I was executing the program I found out that it is possible not to add the variable double twice. The variable can be declared of type double once when it is assigned the value 10. So what is the point to add it twice here?
@trailblazer4227
@trailblazer4227 3 жыл бұрын
I was just asking me the same.
@karimmuhammad149
@karimmuhammad149 2 жыл бұрын
Best tutorials i've ever seen really really Awesome
@aldrindelarosa4033
@aldrindelarosa4033 3 жыл бұрын
you are best TEACHER for me
@schoudhury1911
@schoudhury1911 Жыл бұрын
You are truly a Bro ...
@Shanishani53267
@Shanishani53267 2 жыл бұрын
The best explanation
@ranasaani
@ranasaani Жыл бұрын
Very good course.
@lavin3865
@lavin3865 2 жыл бұрын
you can just say 3.0 and do not write (double) in front of friends, it is easier. and thanks for your videos, it makes my life much easier, hope i can pass programming this semester ...
@Albaraa
@Albaraa Жыл бұрын
did you?
@Andy-fg7hm
@Andy-fg7hm 3 жыл бұрын
Not sure if you will answer this or not? But would it not be easier just changing the "int friends = 10;" statement just to "flat friends = 10; and keep the statement of "friends = friends / 3;" the same?
@thewewguy8t88
@thewewguy8t88 Жыл бұрын
i was thinking the same thing.
@cup_kids
@cup_kids 11 ай бұрын
Thanks 😊
@MrArtificialChannel
@MrArtificialChannel 2 жыл бұрын
ur videos r really helpful and good for learning. u r amazing with the work u put in i have watched so many of ur quality videos for the best clarity on anything. Great job never stop ever ur rlly amazing
@lukedecum
@lukedecum Жыл бұрын
heroic bro
@HsuMonMonThant
@HsuMonMonThant Жыл бұрын
Thank u so much for this understandable explanation video.
@lakshaydang2194
@lakshaydang2194 Жыл бұрын
fav. channel
@dr.oswald5400
@dr.oswald5400 3 жыл бұрын
Thanks for the help on java, I was using a school computer so I couldn't like or comment. I'm doing that now.
@user-ii5kx2by9x
@user-ii5kx2by9x 2 жыл бұрын
TY so much for your's lessons bro!
@aijiexi
@aijiexi 2 жыл бұрын
I like your channel.
@thewebhead51
@thewebhead51 Жыл бұрын
Thanks bro code, you make learning this stuff fun and easy
@JustNeutral14.
@JustNeutral14. 2 ай бұрын
question - is there any easy way to do exponents in java other than variable = variable * variable?
@CyberEscuela
@CyberEscuela 25 күн бұрын
Awesome!
@livelyan2801
@livelyan2801 Жыл бұрын
You forgot about the operations +=, *=, etc. "variable += 1;" equivalent to "variable = variable + 1; Anyway thank you!
@rishiandrian-roblox3601
@rishiandrian-roblox3601 2 ай бұрын
ty for teaching
@ravivarma9344
@ravivarma9344 3 жыл бұрын
Please Bro make video on Data structures and algorithm because I'm frustrated.
@who77754
@who77754 2 жыл бұрын
this guy is a legend
@rjirangkun
@rjirangkun 2 жыл бұрын
WRONG. this is great!
@MrMorale386
@MrMorale386 2 ай бұрын
nice tutorial
@user-rs2ks1pb1s
@user-rs2ks1pb1s Жыл бұрын
Thank you.
@JNDAHAL
@JNDAHAL Жыл бұрын
Great clips ❤❤
@user-ys4xy1cq6l
@user-ys4xy1cq6l 2 жыл бұрын
Really enjoyed and very good
@martinking4615
@martinking4615 2 жыл бұрын
Amazing work ...thanks bro!!
@servallou2514
@servallou2514 3 жыл бұрын
I don't understand how the new datatype thing works at 3:34, like we assign a new datatype, but for that we must have the same datatype than the "new" one
@thephoenixsystem6765
@thephoenixsystem6765 2 жыл бұрын
It doesn't appear to do anything in this example, but if you initialise a new variable like this: int friends = 10; float enemies = (float) friends/7; System.out.println(enemies); You get output: 1.4285715 But if you skip the (float) on that line, you get 1.0, because it treats it like integer division, then turns the 1 into a float.
@nirajanmahara4048
@nirajanmahara4048 2 жыл бұрын
yes, otherwise even if after explicit type conversion in expression, it throws an error(as shown: red underline). so, need to change the main variables data type also.
@infini667
@infini667 2 жыл бұрын
the best
@iscottjones
@iscottjones Ай бұрын
I'm only learning, but isn't this a mistake: 3:56? If you change "friends" from an int to a double, then there isn't any need to have a double here: friends = (double) friends / 3;. The code works the same way if you remove this double.
@bartomiejsniadach5795
@bartomiejsniadach5795 2 жыл бұрын
Another lesson that i understood
@bekturasanbekov1979
@bekturasanbekov1979 Жыл бұрын
Thx for video Bro !
@wallstreetbets7741
@wallstreetbets7741 2 жыл бұрын
i learnt this, thank you
@ibrahimylmaz8378
@ibrahimylmaz8378 2 жыл бұрын
you are amazing!
@wlsedlacek
@wlsedlacek Жыл бұрын
awesome!
@samin21
@samin21 Жыл бұрын
When we use division operator in Java n =1,2,3,4,....... Q1. 0/n Q 2. 0/-n Q3. -0/n So. What is the answer and please explain
@archerlee8091
@archerlee8091 2 жыл бұрын
thanjk you !
@eugenezuev7349
@eugenezuev7349 5 ай бұрын
thank you, bro
@user-gq8mt8dh3w
@user-gq8mt8dh3w 6 ай бұрын
thank you 🥰
@kirillionov5594
@kirillionov5594 3 жыл бұрын
Thx Bro. Best tutorial.
@AmberShah786
@AmberShah786 2 жыл бұрын
Thank you
@Rinku-ac
@Rinku-ac 16 күн бұрын
Bro, i have a question at 4:06 double friends = 10; friends = (double)friends/3; what is the point of the (double)? cuz it works without it
@sazidulhoque9892
@sazidulhoque9892 Жыл бұрын
helped alot!
@beom8285
@beom8285 Жыл бұрын
The Best!!
@PoorwayTraning
@PoorwayTraning Жыл бұрын
thanks
@aleksandarmilanovic229
@aleksandarmilanovic229 2 жыл бұрын
Great!
@aditipatil3807
@aditipatil3807 Жыл бұрын
Thanks
@nadaanber7601
@nadaanber7601 Жыл бұрын
Your videos are طن طايمز better than that dude that i forgot his name 🤙🏻
@ahababchowdhury7655
@ahababchowdhury7655 Жыл бұрын
Thanku
@ktos2144
@ktos2144 2 жыл бұрын
Wow it's nice film bro :o
@dalv8749
@dalv8749 Жыл бұрын
ty
@TeluguPointvelivela
@TeluguPointvelivela 3 жыл бұрын
Awesome lecture
@alexeybudkovskiy
@alexeybudkovskiy Жыл бұрын
Thanks Bro for a great lesson :)
@oxeo
@oxeo 2 жыл бұрын
Voice ✋🏻🖤
@migueldejesustavares4168
@migueldejesustavares4168 2 жыл бұрын
Great video like always
@alyymibeal5485
@alyymibeal5485 3 жыл бұрын
appreciate these videos :)
@MakeAMilTana
@MakeAMilTana Жыл бұрын
Thanks bro!
@huuloc8719
@huuloc8719 2 жыл бұрын
Nice.
@sairos4057
@sairos4057 2 жыл бұрын
Ty bro
@Heyjo300
@Heyjo300 Жыл бұрын
thx
@Habiqi
@Habiqi 2 жыл бұрын
Thanks dude
@Vijay_Isaac
@Vijay_Isaac Жыл бұрын
Thanks Bro ❣
@saraguermoud5165
@saraguermoud5165 3 жыл бұрын
thank you Bro Code
@schoolinvestment8308
@schoolinvestment8308 2 жыл бұрын
Thanks bro
@malli-qw1fd
@malli-qw1fd 4 ай бұрын
public class ArithmeticExp { public static void main(String[] args) { // expression = operands and operators // operands = values, variables, number, quantity etc.. // operators = + - * / % int myNum = 10; System.out.println("divide: "+(10/2)); System.out.println("Multiply: "+(10*2)); System.out.println(myNum); } }
@kapebreak
@kapebreak Жыл бұрын
thanks bro
@anthonykalkhorani7546
@anthonykalkhorani7546 3 жыл бұрын
/** * * @author yodao * */ public class Expressions { public static void main(String[] args) { /** * Expression is operands and operators * operands is the value, variables and the numbers * an operators is the = sign, the + and - sign */ int friends = 20; friends = friends + 12; System.out.println("You have " +friends+ " friends"); // the program writes out that you have 32 friends, but we began with 20 friends } } this was mine i did, thank you bro
@Minecarthus
@Minecarthus 3 жыл бұрын
I love your chanel !!!
@Heli1366
@Heli1366 2 жыл бұрын
amazing content
@nikitassouvatzis1928
@nikitassouvatzis1928 2 жыл бұрын
Εδώ είμαστε πάλι Bro.
@newhopehope8130
@newhopehope8130 3 жыл бұрын
Awesome Content Dude!!!!
Java GUI intro ⭐【5 minutes】
5:49
Bro Code
Рет қаралды 168 М.
How to accept user input in Java ⌨️【8 minutes】
8:02
Bro Code
Рет қаралды 191 М.
❌Разве такое возможно? #story
01:00
Кэри Найс
Рет қаралды 6 МЛН
Whoa
01:00
Justin Flom
Рет қаралды 54 МЛН
КТО ЛЮБИТ ГРИБЫ?? #shorts
00:24
Паша Осадчий
Рет қаралды 4,3 МЛН
Java if statements 🚧【6 minutes】
6:12
Bro Code
Рет қаралды 145 М.
Java Math class 📐【6 minutes】
6:12
Bro Code
Рет қаралды 105 М.
Java static keyword ⚡
8:18
Bro Code
Рет қаралды 112 М.
Learn Java in 14 Minutes (seriously)
14:00
Alex Lee
Рет қаралды 4,7 МЛН
Variables in Java ✘【12 minutes】
12:32
Bro Code
Рет қаралды 197 М.
Java Strings are Immutable - Here's What That Actually Means
7:06
Coding with John
Рет қаралды 613 М.
Java polymorphism 🏁
6:12
Bro Code
Рет қаралды 118 М.
How I Failed the Google Coding Interview (and lessons I learned)
14:24
Lambda Expressions in Java - Full Simple Tutorial
13:05
Coding with John
Рет қаралды 736 М.
Regular Expressions Made Easy with Java - 2019 Tutorials
14:16
Kindson The Tech Pro
Рет қаралды 84 М.