Drinking game: Take a drink everytime I say the word 'VaRiAbLe' //************************************************ public class Main { public static void main(String[] args) {
String x = "water"; String y = "Kool-Aid"; String temp;
Dude that visual representation of switching content was the best I've seen. It actually has me thinking about programming in a different way now. Well done mate!!!!
int a = 10, b = 20; int temp = 0 ; temp = a ; a = b ; b = temp; System.out.println(" The value of a is : " + a ) ; System.out.println(" The value of b is: " + b) ; Yay! Swapped the variable! :)
Found your channel looking for help in JavaFX - taking an online college course in Java and my instructor's idea of teaching is assigning a chapter to read, assigning a single program, assigning a quiz....and that's it. Watched your first JavaFX video and decided to start at the top because your videos are 1000% more useful than my class. Subscribed!
I feel you on that. I am currently enrolled in Coding Dojo part time online, and it is the same teaching strategy. I am learning more from Coursera and youtube videos 😂
public class SwitchingVariables { public static void main(String[] args) { String Mug = "Coffee"; String Glass = "Milk"; String ExtraCup; ExtraCup = Mug; Mug = Glass; Glass = ExtraCup;
System.out.println("Mug with "+Mug); System.out.print("Glass with "+Glass); } } It was very easy to understand when you did the Water and Kool-aid showcase
honestly bro ur videos are so helpful learning java because its not being presented as a robot professor who just reads out of the book in all of my courses. def gonna recommend u to all my classmates.
public static void main(String[] args) { String x = "Lemon"; String y = "Water"; String temp = null; // extra string for switching manually
temp =x; //pour x into null glass x = y; //pour y into x This helps us switch x and y y = temp; // pour temp into y System.out.println("a: "+y); //use println for printing 2 seperate sentences System.out.println("b: "+x);
Awesome teaching technique - use of a real life illustration that people can relate to. Nice! Empty the contents of cup X into cup TEMP, now cup X is empty. Empty the contents of cup Y into cup X, now cup Y is empty. Empty the contents of cup TEMP into cup Y, now cup TEMP is empty & cups X & Y are full.
Here's my example how I practiced it today: public class VariableSwitch { public static void main(String[] args) { String x = "Catfood"; String y = "Dogfood"; String temp = null; x = temp; x = y; y = temp; System.out.println("x:" + x); System.out.println("y:" + y); } } Just basic sh but you still helped me out a lot. Thank you
something that helps me is writing comments describing whats happening when i set a variable equal to something. For example: temp = x; //temp is set to the value of x(water) x = y; //x is set to the value of y(kool-aid) y = temp; // y is set the value of temp(water) NOTE: remember temp was set to x which is the value of water
At first, I really needed to think about it, but I got it when I realized that the programm is executed line by line and that the variables therefore can be redefined depending on the (time)line the programm has progressed to (if that makes any sense). I think one can gets confused because in math, a variable is always fix (at least what I know from school math). I don´t have programming experience myself, I am just trying to find a language to start with by looking through some tutorials. Nice explaination!
Thanks for another video Bro! I'm still quite new to this so I don't understand the purpose of switching variables. Hoping to learn more and answers as I watch your videos!
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
Uhff Broooo, this is the best variable swapping tutorial I've every seen. I need to come up with this juicy visualization in my class. Never had so much fun by learning a new programming language.👍😎👌
thanks for the tutorial String x = "Me"; String y = "Help"; String temp; temp = x; x=y; y=temp; System.out.println("x: "+ x); System.out.println("y: "+ y); here is the code
public class Main{ public static void main(String[] args) { int x=14, y=415; int s; s=x; x=y; y=s; System.out.println(x); System.out.println(y); } } You are a great Teacher!!!!!
Drinking game: Take a drink everytime I say the word 'VaRiAbLe'
//************************************************
public class Main {
public static void main(String[] args) {
String x = "water";
String y = "Kool-Aid";
String temp;
temp = x;
x=y;
y=temp;
System.out.println("x: "+x);
System.out.println("y: "+y);
}
}
//************************************************
I know I'm late to party
But me after drinking game: String Result = 1:32
Dude that visual representation of switching content was the best I've seen.
It actually has me thinking about programming in a different way now.
Well done mate!!!!
That's what I call visualisation!
Fixing commentsc
And it’s thirsty 😂
This is the most obvious explanation for beginners I've ever seen. Thank you, bro!
Visual teaching is always great, its even better when the visuals are funny!
Today, I start learning OOP in Java. Thank you so much for this free course. I will comment on every video I have learned.
yay!
It’s not very often I find a teacher I understand on RUclips for Java , but I now have
Thanks for making it easy to understand!!
int a = 10, b = 20;
int temp = 0 ;
temp = a ;
a = b ;
b = temp;
System.out.println(" The value of a is : " + a ) ;
System.out.println(" The value of b is: " + b) ;
Yay! Swapped the variable! :)
Found your channel looking for help in JavaFX - taking an online college course in Java and my instructor's idea of teaching is assigning a chapter to read, assigning a single program, assigning a quiz....and that's it. Watched your first JavaFX video and decided to start at the top because your videos are 1000% more useful than my class. Subscribed!
I feel you on that. I am currently enrolled in Coding Dojo part time online, and it is the same teaching strategy.
I am learning more from Coursera and youtube videos 😂
I'm a begginer in java programming and your tutorials helps me a lot♥️
Best explanation in the RUclips history......
I have been started studying at the university for 3 years ,but this helped me a lot to understand the swapping logic thanks
Bro, I had Java-phobia, but thanks to you that's faded. Simply, great work brooooo!!!
public class SwitchingVariables {
public static void main(String[] args) {
String Mug = "Coffee";
String Glass = "Milk";
String ExtraCup;
ExtraCup = Mug;
Mug = Glass;
Glass = ExtraCup;
System.out.println("Mug with "+Mug);
System.out.print("Glass with "+Glass);
}
}
It was very easy to understand when you did the Water and Kool-aid showcase
i like your Variables names
honestly bro ur videos are so helpful learning java because its not being presented as a robot professor who just reads out of the book in all of my courses. def gonna recommend u to all my classmates.
Now I really Understood how Variables are Swapped, Thanks for the Real Life Explanation.
Thank Bro Code.
I could learn java code in English.
Step by step , I will watch your video in japan.
Did you finish watching all of them 100 videos, bro?
public static void main(String[] args) {
String x = "Lemon";
String y = "Water";
String temp = null; // extra string for switching manually
temp =x; //pour x into null glass
x = y; //pour y into x This helps us switch x and y
y = temp; // pour temp into y
System.out.println("a: "+y); //use println for printing 2 seperate sentences
System.out.println("b: "+x);
I'm still have a bunch of school homework now. after all of these, I will watch your newest java tutorials 😊
Awesome teaching technique - use of a real life illustration that people can relate to. Nice!
Empty the contents of cup X into cup TEMP, now cup X is empty.
Empty the contents of cup Y into cup X, now cup Y is empty.
Empty the contents of cup TEMP into cup Y, now cup TEMP is empty & cups X & Y are full.
Wow!! Godfather of youtube Teachers ,♥️🙏
World's best teacher 🙃☺️☺️☺️☺️☺️ real life examples 😅🤘🤘
you are so good as a teacher. I am loving your tutorial.
I like the way of you Teach!❤❤😍😍 - Love Programming
Sorry about your floor, Bro. This visualization actually made sense! Thank you!!!
Awesome, cool in style and teaching method.
Here's my example how I practiced it today:
public class VariableSwitch {
public static void main(String[] args) {
String x = "Catfood";
String y = "Dogfood";
String temp = null;
x = temp;
x = y;
y = temp;
System.out.println("x:" + x);
System.out.println("y:" + y);
}
}
Just basic sh but you still helped me out a lot. Thank you
Really awesome with real world examples. You're super.
you're one of those GOATED teacher! Love you!!
something that helps me is writing comments describing whats happening when i set a variable equal to something.
For example:
temp = x; //temp is set to the value of x(water)
x = y; //x is set to the value of y(kool-aid)
y = temp; // y is set the value of temp(water) NOTE: remember temp was set to x which is the value of water
bump
thank you so much I am watching one lesson every day 🤓, trying to learn java from your videos ,keep it up 👍
My brain just melted from this very simple demonstration... A new window has opened for me.
Such a great visual expression.
At first, I really needed to think about it, but I got it when I realized that the programm is executed line by line and that the variables therefore can be redefined depending on the (time)line the programm has progressed to (if that makes any sense). I think one can gets confused because in math, a variable is always fix (at least what I know from school math). I don´t have programming experience myself, I am just trying to find a language to start with by looking through some tutorials. Nice explaination!
Thanks for another video Bro! I'm still quite new to this so I don't understand the purpose of switching variables. Hoping to learn more and answers as I watch your videos!
Amazing genius explaining !! Keep that great method !
I subscribed 2 times 😄
u r such a bro, and I simply don't get tired to spam your comments with appreciation
really loved your way of teaching!
Bro you are awesome and a lot of fun to study with!
that visual representation was genius bro
I think I understood the assignment.
public class Main {
public static void main(String[] args) {
String x = "Burly";
String y = "Girly";
String temp;
temp = y;
y=x;
x=temp;
System.out.println("x: "+x);
System.out.println("y: "+y);
}
}
Learning Java next semester. Thanks for the vid.
I had not ever watched that type of wonderful visulation ❤ Amazing 🤝
really loved your way of teaching
Ur teaching was clear and crystal ❤❤
I really liked the way that you swap the variable value with showing live example.
Well that live demo was fun :)
you saving lives out here .. thank you "Michael Scott impression"
This is the great explanation I have ever seen👍👍👍
Good luck
Breathtaking visuals.
Real life example is awesome 🔥
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
int x = 3;
int y = 4;
int temp = 0;
temp = x;
x = y;
y = temp;
temp = 0;
System.out.println(x + ", " + y);
Thanks for the tutorial!
4 years into computer science and this is the first time that I have ever understood how swapping works for real :)
Uhff Broooo, this is the best variable swapping tutorial I've every seen. I need to come up with this juicy visualization in my class. Never had so much fun by learning a new programming language.👍😎👌
Visual method is the best way to explain something
The best explanation in the globe.
Best explanation I have seen
Really liked the kool-aid and water example. Love your vids keep up the good work bro.
thank you for watching Mohammad
I am watching it in March 2024 and found the coolest way to understand.
I so needed this video for my quiz last night. I totally understand it so much better now, thank you!
Your content is pure gold :D
Your tutorials are soo fun to watch and easy to understand i dont understand why you are so underratedd!!
best explantion of the concept ever
thanks for the tutorial
String x = "Me";
String y = "Help";
String temp;
temp = x;
x=y;
y=temp;
System.out.println("x: "+ x);
System.out.println("y: "+ y);
here is the code
Love from bangledesh bro you are doing good i saw your c++ vedio thats helped me a alot in the in my term;
best coding teacher cant express how good he teaches
One of the best course till date for JAVA!
public class Main{
public static void main(String[] args) {
int x=14, y=415;
int s;
s=x;
x=y;
y=s;
System.out.println(x);
System.out.println(y);
}
}
You are a great Teacher!!!!!
haven't seen a better teacher in my life
I appreciate the visual demonstration of the code!! good effort thank you
That Real Life Example was really helpful. Thanks
Omg I love this visualization. Can't even mix that logic with this explanation. TYSM.
that real life example is awsome brooo
The explanation is so clear, thank you for your attentively.
Entertaining and mindblowing. Thank you.
Great Explanation 😍
Best visually real life example
$ python
a, b = b, a
You've been a great audience, goodnight!
that's why I love it and hate it at same time
I never saw a video LIKE this❤❤❤
I have not seen any better example like this before.
The visual representation is too good man. 😀; Big Thumps up
very interesting explanation
The best ever tutorial 👏👏
Thanks for your real life example with water :)
It makes me understand more on this swapping method
amazing, simple explanation, thanks bro
I am seriously glad I found ur channel!!!
Love the visualization
Love that presentation
i have to say i found this real life example very funny and also helpful
That live example was an overkill 😂
What a visualisation!!
Good idea with the water. I don't even have to try it even once, all I need to know is that the temp is the third glass. Tnx man.
This was a great explanation for how to swap between these variables 👍👍👍👍👍👍👍
I feel like such a menace after coding this:
String a = "b";
String b = "a";
String temp = null;
temp=a;
a=b;
b=temp;
System.out.println("a: "+a);
System.out.println("b: "+b);
And yes, it worked although it was convoluted lol; the output was:
a: a
b: b
Thanks for the brilliant video.
2 people clearly drank the Koolaid....
thx boi(bro with proud feel)!!!😉
You are great can't express in words ❤
good explanation 👌
Became your fan brooooo 😍😍😍
Love from India ❤️❤️❤️❤️❤️
Best video I've ever seen. You're a genious.