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