public class Main { public static void main(String[] args) {
// logical operators = used to connect two or more expressions // // && = (AND) both conditions must be true // || = (OR) either condition must be true // ! = (NOT) reverses boolean value of condition // -------------------------------- Example 1 -------------------------------- /* int temp = 15;
if(temp>30) { System.out.println("It is hot outside"); } else if(temp>=20 && temp
OMG I can't believe that there's a brilliant guy teaching java in easiest way, only you are the guy on yt who is teaching in the simplest way Java unbelievable THANK YOU SO MUCH SIR KEEP ON GOING❤️❤️👌
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
Great series so far (the java tutorials) - very helpful teaching an old dog new tricks..;). especially love the fact that you use metrics rather than imperials..:)
You probably already know the answer but... since he's only entering one character (like q or Q) and not a full word, he can just use .next() which checks only for the first character that the user enters and not then remaining characters.
hello bro hope you will read this. I can only use sysout ctrl + space once and if I do it again then you must click it before the IDE corrects it. How to fix that? btw im using 2023 version of eclipse
In Example 2, should I use this? if(response == "q" || response == "Q") { System.out.println("You quit the game"); } else { System.out.println("You are still playing the game *pew pew*"); }
@@sairos4057 to work just change the first line , will be like this: if((response == "q") || (response == "Q")) { System.out.println("You quit the game"); }
NextLine looks for the next line that is typed by the user there is not scanner.next() or what i have learned ignore that right now focus on the main one scanner.NextLine()
public class Main {
public static void main(String[] args) {
// logical operators = used to connect two or more expressions
//
// && = (AND) both conditions must be true
// || = (OR) either condition must be true
// ! = (NOT) reverses boolean value of condition
// -------------------------------- Example 1 --------------------------------
/*
int temp = 15;
if(temp>30) {
System.out.println("It is hot outside");
}
else if(temp>=20 && temp
this is code for operators not switch!
@@danielmilewski7659 bro this video is for operators not switch!
gotta save timeee
bro bro bro... May god bless you and your whole family
OMG I can't believe that there's a brilliant guy teaching java in easiest way, only you are the guy on yt who is teaching in the simplest way Java unbelievable THANK YOU SO MUCH SIR KEEP ON GOING❤️❤️👌
May God bless you and your family.
Your videos are so helpful for me. Watching them are like doing revision. Yeah..! It's so helpful.
Thanks for watching Gamaliel!
So to I, thanks bro code. you have been such a great teacher.
Thanks for sharing you simplified it and explained it really well👍
You explain much better than my teacher 😀😀
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
Great series so far (the java tutorials) - very helpful teaching an old dog new tricks..;). especially love the fact that you use metrics rather than imperials..:)
Great👍👍👍
this is really helpful like a lot
Very easy to understand, appreciate BRO
cool game...
😎 great videos, thanks
Awesome
Man, this is so cool. imagine what we can do with this
Great tutorial as always
Awesome 👌 thanks Bro
Thank you again 💙💙💙💙💙
Wish I'd seen this video 2 weeks ago! Thanks again.
Nice.
Your videos are so helpful thank you so much !!!
great video!!! I'm infinitely grateful for your dedication and big heart to share this knowledge with the world. Thank you soo much ♥♥♥♥♥♥
Thanks for video!
3:43 how did you do that bro?
Nice video
thanks you boss
thank you so much
Godbles for you bro. And l subscribe you channel 😊 , l'm personaly thank you soo much 🙏🏽🙏🏽🙏🏽
Still watching the series! thank you bro!
good job
Love you videos
thats gooood
Scanner scanner = new Scanner(System.in);
System.out.println("You are playing a game! Press q or Q to quit");
String response = scanner.next();
Just wanted to know, in this line why did u not use scanner.nextline( )?
Thank you so much for your making these videos. They are extremely helpful.
You probably already know the answer but... since he's only entering one character (like q or Q) and not a full word, he can just use .next() which checks only for the first character that the user enters and not then remaining characters.
Great video!
Amazing tutorials! Thx dude!
❤❤❤
Why would you use these instead of switches?
if only every argument involved logic
Thank you
thanks bro
Bro 🤜
thanks
how"d you do the shortcut of that import?
You sound like a fast bro on 2x speed, especially when I'm drinking wine
Thanks, Bro!
☕
thanx bro
i saw a course for 10$ in udemy but urs was free and very much helpful
Shift+\\
@@rupamdey5411 hmmm?
❤️❤️🙌🙌
thank u
❤
ty
TY bro
hello bro hope you will read this. I can only use sysout ctrl + space once and if I do it again then you must click it before the IDE corrects it. How to fix that? btw im using 2023 version of eclipse
learnt
thanks!
Gos bless you Bro +9
you are amazing!
bro is better than my teacher
gg
thx 4 vid bro !
Thank you!
thank you❤❤
Thanks!
why did we use next and not nextLine
thank you so much!
I made a scanner method(?) How can I repeat it so I dont have to run the program every time?
While or for loop! (he made tutorial for those too)
Thanks Bro !
Thanks, Bro 06/01/2024
In Example 2, should I use this?
if(response == "q" || response == "Q") {
System.out.println("You quit the game");
}
else {
System.out.println("You are still playing the game *pew pew*");
}
I tested here and it didn't work. I think it'd work in another programming language but not Java
@@sairos4057 to work just change the first line , will be like this:
if((response == "q") || (response == "Q")) {
System.out.println("You quit the game");
}
work
lets go after a small break im back doing these :)
6:03
Thanks! :D
thx bro!
Bro is bro
GOAT!
Celsius, my man 🙏🏻🙏🏻
comment for algorithm!
:)
This one gave me a hard time when trying to do it with a GUI... and I gave chatgpt a hard time trying to explain to me what why it wasn't working lol
vedio - 11
can someone explain for me the different between the scanner.Next() and scanner.NextLine() pls
NextLine looks for the next line that is typed by the user there is not scanner.next() or what i have learned ignore that right now focus on the main one scanner.NextLine()
bro
smooth and easy!
"
I cant find the symbol for the OR logical operator on my keyboard
Shift+\\
ankaraaa ankaraaaaasa
You are an insane teacher
comment for stats!
temp in And Or Not moving to next lesson
comment
Bro 🤜 code
"Video 11"
Bro, pizza day exists! Feb 9!
Comment 11
dab
.
i am the liker number 667
Ακόμα ένα πολύ ενδιαφέρον video της σειράς μαθημάτων για τη Java.
6 february l m done thenk you bro kod