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❤️❤️👌
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..:)
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
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"); }
can i use this ? if ((response == "q") || (response =="Q")){ System.out.println("You quit a game"); } else{ System.out.println("You are still playing the game *pew pew*"); }
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👍
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 video!!! I'm infinitely grateful for your dedication and big heart to share this knowledge with the world. Thank you soo much ♥♥♥♥♥♥
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
Man, this is so cool. imagine what we can do with this
Awesome
Very easy to understand, appreciate BRO
this is really helpful like a lot
Wish I'd seen this video 2 weeks ago! Thanks again.
Godbles for you bro. And l subscribe you channel 😊 , l'm personaly thank you soo much 🙏🏽🙏🏽🙏🏽
😎 great videos, thanks
Great tutorial as always
Your videos are so helpful thank you so much !!!
Awesome 👌 thanks Bro
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.
You sound like a fast bro on 2x speed, especially when I'm drinking wine
Amazing tutorials! Thx dude!
Still watching the series! thank you bro!
Thanks for video!
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
i saw a course for 10$ in udemy but urs was free and very much helpful
Shift+\\
@@rupamdey5411 hmmm?
Thank you again 💙💙💙💙💙
if only every argument involved logic
can someone explain for me the different between the scanner.Next() and scanner.NextLine() pls
Thanks
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");
}
Great video!
❤❤❤
Gos bless you Bro +9
cool game...
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
❤
Why would you use these instead of switches?
Nice.
thx 4 vid bro !
thanks you boss
how"d you do the shortcut of that import?
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)
good job
Nice video
Love you videos
thank u
learnt
Thanks, Bro!
☕
thats gooood
gg
3:43 how did you do that bro?
thanks bro
🙂
lets go after a small break im back doing these :)
you are amazing!
comment for algorithm!
Thank you
thanx bro
Bro 🤜
why did we use next and not nextLine
❤️❤️🙌🙌
:)
Thank you!
Thanks!
thank you so much!
TY bro
work
Thanks Bro !
Bro is bro
GOAT!
I cant find the symbol for the OR logical operator on my keyboard
Shift+\\
Thanks, Bro 06/01/2024
Thanks! :D
Bro, pizza day exists! Feb 9!
thank you❤❤
thx bro!
6:03
comment for stats!
ankaraaa ankaraaaaasa
i am the liker number 667
smooth and easy!
temp in And Or Not moving to next lesson
"
vedio - 11
You are an insane teacher
bro
!sis
Bro 🤜 code
comment
"Video 11"
Comment 11
.
dab
Ακόμα ένα πολύ ενδιαφέρον video της σειράς μαθημάτων για τη Java.
6 february l m done thenk you bro kod
can i use this ?
if ((response == "q") || (response =="Q")){
System.out.println("You quit a game");
}
else{
System.out.println("You are still playing the game *pew pew*");
}
Thanks
gg
thank you