If you’re new to programming but want a career in tech, I HIGHLY RECOMMEND applying to one of Springboard’s online coding bootcamps (use code ALEXLEE for $1,000 off): bit.ly/3HX970h
It's not always that they are useless, but the curriculum puts constraints on how effective of teachers they can be.
3 года назад+14
Exactly. My course is teaching me the same thing in 4 hours and I don't get it at the end of it plus feeling like a stupid. And he literally teach perfectly in 15 minutes. I don't know what else to say.
Nice I did mine Monday. Alot better now that it's summer I feel like I'm going to learn alot more just doing my own stuff and making projects for fun. School has a way of sucking all the fun out of anything interesting. Lol
Alex. You are so humble person. Great and easy explanations of all topics. Please give more exsamples for oop concepts, array, collections. (You may give exsamples from real life). I recommend you to my friends they are very glad to watch you. Respect. You do such a great job.
I have recently started to learn Java and when I saw him get excited by generating the getters and setters my heart skipped a beatt cause I'm used to that, but it's so cute when you see people get excited about things you already know or have. It makes me think of elderly who are surprised by all the new technologies
You are like a magician that casts a spell, and all of a sudden the fog is going away, making room for the sun to shine. My mind felt like clearing up while I was watching this awesome video of yours. There are many Java-related tutorial videos out there, but none of them have this talent to explain in such a clear and comprehensible way. Bonus points for your charismatic and charming charisma 😊😊
@Alex Lee All schools should have to pay a small dividend to you for students that passed their classes, but only did so because they watched your videos. You are a Java programming wizard in my book my man! Thanks for also stepping through how the compiler runs through the code. That really helped hit it home and tied it all together.
Getters/setters also allow you to perform actions on the input before setting/getting the variable, for example, you could change the setName to this.name = name.toUpperCase(); This will set the variable to all caps. Getters/setters are very powerful when used correctly!
Great! The author decided from the very beginning to teach programmers what everyone has been trying to unlearn for about 15 years now: write accessor methods.
When my professor introduced our getters/setters lecture, I thought this was about to be a deep lecture in OOP theory. Come to learn, it was all about creating instance methods to return the state of an object or implement some action on it's state within a client program. I wanted to leave after 5 minutes. I'll say though, I'm glad you've gone over this and I think your video is about the right amount of time for any student to understand these fundamental concepts.
not that I didn't understand what setters and getters are for but I'm glad your youtube channel exists cause my java II professor barely teaches like this at all. Just gives us reading assignments and you basically gotta teach yourself the material
Alex, your videos are incredibly helpful. You have a real knack for explaining confusing concepts in an extremely understandable and simple way. Thank you!
6:22 It doesn't confuse the computer (or rather the compiler). It simply sets the local variable 'name' to itself. By doing this it doesn't achieve the goal you want because the name of the scope variable and object variable are the same and the latest defined variable in the scope will always be used. On another note: Getters and setters are a lot of boilerplate code. Even for beginners I would suggest using something the like Lombok extension / plugin for Java. Creating something like the Account class in this video can then be done with: @Data public class Account { private String name; private int age; } That piece of code will have getters and setters and even equalization that is desired. At compile time it will be converted to normal Java code. Or if that is too much you can also use public class Account { @Getter @Setter private String name; @Getter @Setter private int age; }
Hey ! Alex, I am from India. This comment is to thanks you "This video help me to understand getter & setters easily" , also your bonus tip is just like you nailed it.
13:18 If you are using NetBeans click (Alt + Ins) >> If you are using a LapTop like me, you will find (Ins) in the numbers pad on your right-hand side.
you can also generate getters and setters automatically in eclipse by doing: Source --> Generate Getters and Setters picking the variables then 'Generate' (you can also choose modifiers) and it will generate those for you
Thanks a lot ! I actually tried finding a video explaining this keyword and getter and setter for over 4 hours, and I found this now. You actually make concepts a lot easier to understand. And thanks again, I needed this for an assignment.
Dude Thank you so muchhhh for create these videos 🥺❤️❤️ They don't teach us anything at uni . Your videos helped me a lot .Thank you wish you the bests 🙏🏻
Hey, just wanna say you're really awesome! Your tutorial really helps and its very easy to understand. My professor's teaching is nowhere near your teaching. I hope you continue to make these videos, thank you so much for these!
THANK YOU SO MUCH! you're so much better than my current professor in university (no offense to him but I got so frustrated that I didn't get what he said because he keeps over complicating and over explaining his lessons that I got confused) but this is all the lesson had to say ;-;
Great video again!! 😊👍 But i wonder if you, in the future can make seperate class files for the methods etc...since that is actually how the program has to be stuctured. But by all means, love you videos!!❤
Thank you so much for this video! I am trying to learn java in my freetime and for some reason, I couldn't quite understand what's it about with getters and setters. This video helped a lot!
Haha, I've gone through this before but I actually got it this time. Actually was watching more to verify this time. Before, I had the getter backwards, thinking that getter got the value from user then passed it to the setter... which didn't make much sense haha
**Alex -- this was so much easier to follow than my own instructor, thank you! The only thing I'd like is a little slower on the ending code walk through and if you had a highlighter pointer to see where you are talking about, that would be even better! Really great though! ** Does anyone have the shortcut or plugin for Notepad ++ for the System.out.println(); ? I tried installing the QuickText plugin but I can't get it to work. We will be moving over to Eclipse soon, but we are in Notepad++ right now and it's so annoying to have to keep writing out the print method.
I remember when you was so less subscribers, I made you a few compliments back then and I wanted to join the Facebook page but I took to much time so you can accept me so , I deleted my request anyways man the reason I put another comment is that you really help people around with this videos , Alex be safe man and thanks for this videos very helpful now that I have a clue about java, now is coming together the code.
when making the set and get methods, you could name the method anything and it would do the exact same thing, if the details of what the method does stays the same... i guess its just really good practice to do so and its really convenient also btw ur tutorial is great!
I'm grateful I found this channel. Thank you very much sir! I'll be more happy if you make a video for "Different Errors in Java programming and how to fix them" and "Shortcuts and the environment of Eclipse" (cause we can't edit in Photoshop without knowing it's tools right?) Thank you again sirr!
Thanks for really sharing , good work with us, am really appreciating the good effort you are putting in. Honestly I have understood the topic well. Thank you very much Lee
If you’re new to programming but want a career in tech, I HIGHLY RECOMMEND applying to one of Springboard’s online coding bootcamps (use code ALEXLEE for $1,000 off): bit.ly/3HX970h
My professor is useless. Thank you for this video, I needed it.
It's not always that they are useless, but the curriculum puts constraints on how effective of teachers they can be.
Exactly. My course is teaching me the same thing in 4 hours and I don't get it at the end of it plus feeling like a stupid. And he literally teach perfectly in 15 minutes. I don't know what else to say.
University is mainly for profit.
@@thejamericanexperience2757 Depends on the university
wouldn't agree more 😤
Alex, please continue doing these tutorials. It helps me, and I'm sure a lot of others who want to extend their knowledge of Java.
This man has just saved my schooling career!!
bruh, this video explained "this' better than any of the other 10-20min videos out there specifically trying to explain "this". THANK YOU
Just did my java final earlier this week, definitely would of failed without your videos, thanks for your good work!
Nice I did mine Monday. Alot better now that it's summer I feel like I'm going to learn alot more just doing my own stuff and making projects for fun. School has a way of sucking all the fun out of anything interesting. Lol
Would've
What kind of example questions did you encounter? Could you show us 1 or 2? Just to see what they ask in a java exam =D
its not work its a work of art you troll
Thank you! I have been writing get, set for a month without knowing why and when to use lol. Thanks a lot
Alex. You are so humble person. Great and easy explanations of all topics. Please give more exsamples for oop concepts, array, collections. (You may give exsamples from real life). I recommend you to my friends they are very glad to watch you. Respect. You do such a great job.
I have recently started to learn Java and when I saw him get excited by generating the getters and setters my heart skipped a beatt cause I'm used to that, but it's so cute when you see people get excited about things you already know or have. It makes me think of elderly who are surprised by all the new technologies
He already knew about it lol. He was just excited to tell us about it because its a great shortcut for beginners, not because he just learned it.
You are like a magician that casts a spell, and all of a sudden the fog is going away, making room for the sun to shine.
My mind felt like clearing up while I was watching this awesome video of yours.
There are many Java-related tutorial videos out there, but none of them have this talent to explain in such a clear and comprehensible way. Bonus points for your charismatic and charming charisma 😊😊
omg 13:01 the short cut is very useful ! Thank you Alex !!! Right click -->Source-->Generate Getters and Setters
@Alex Lee All schools should have to pay a small dividend to you for students that passed their classes, but only did so because they watched your videos. You are a Java programming wizard in my book my man! Thanks for also stepping through how the compiler runs through the code. That really helped hit it home and tied it all together.
Getters/setters also allow you to perform actions on the input before setting/getting the variable, for example, you could change the setName to
this.name = name.toUpperCase();
This will set the variable to all caps. Getters/setters are very powerful when used correctly!
cool, didnt know we could use .toUpperCase() with set, thankss
Great! The author decided from the very beginning to teach programmers what everyone has been trying to unlearn for about 15 years now: write accessor methods.
Hello Alex. My name is Freeman, from Nigeria. Just to let you know that your videos made great impact to my learning java. Thank you so much.
You make java extremely simple without over complicating it! Appreciate the videos man!
You explained in 5 minutes what my professor couldn’t explain in 2 weeks, well done!
When my professor introduced our getters/setters lecture, I thought this was about to be a deep lecture in OOP theory. Come to learn, it was all about creating instance methods to return the state of an object or implement some action on it's state within a client program. I wanted to leave after 5 minutes. I'll say though, I'm glad you've gone over this and I think your video is about the right amount of time for any student to understand these fundamental concepts.
I've watched hours of tutorials on RUclips but this one just clicked with me! Great job, good teacher 👍
not that I didn't understand what setters and getters are for but I'm glad your youtube channel exists cause my java II professor barely teaches like this at all. Just gives us reading assignments and you basically gotta teach yourself the material
Alex, your videos are incredibly helpful. You have a real knack for explaining confusing concepts in an extremely understandable and simple way. Thank you!
6:22 It doesn't confuse the computer (or rather the compiler). It simply sets the local variable 'name' to itself. By doing this it doesn't achieve the goal you want because the name of the scope variable and object variable are the same and the latest defined variable in the scope will always be used.
On another note:
Getters and setters are a lot of boilerplate code. Even for beginners I would suggest using something the like Lombok extension / plugin for Java. Creating something like the Account class in this video can then be done with:
@Data
public class Account {
private String name;
private int age;
}
That piece of code will have getters and setters and even equalization that is desired. At compile time it will be converted to normal Java code. Or if that is too much you can also use
public class Account {
@Getter @Setter
private String name;
@Getter @Setter
private int age;
}
I havent seen any other tutorials that explain step by step of what you are doing and why. Thank you!! Youre the besttt
You explained more in the first minute than my damn class and professor did this whole semester. Thank you!
Hey ! Alex, I am from India. This comment is to thanks you "This video help me to understand getter & setters easily" , also your bonus tip is just like you nailed it.
Just learned this in my AP comp sci course, nice vid
Nice :)
Without your video on how to learn java in 17 minutes I would never had picked up Java TY!
Perfect explanations, easy to follow along. I can watch several of your videos and not get bored for even a second ❤
I'm currently taking this course and to have further knowledge, I watch your free videos. Thank you and please do create more!
I have a test next week and this video really helped me ty!
I learned all of this through CS Awesome, but your vids had definitely clarified the details of java code and I thank you so much for it
I have never been to college so don't know how they teach java. But This guy did a great job for me !
My finals is in few hours and this definitely helped me understand on why, where and when to use getter and setter. Thank you so much Sir 😭🙏🏻✨
your videos are really helping me get through my university programming classes, thank you.
I'm so grateful for all of Alex's YT videos haha
i was so confused about the 'this' parameter but now i know ..........thank you alex for the precise info...love love
i cant believe my course didn't have getters and setters explained and this is such a crucial topic!
You are awesome! i am studying CL and Java is my core subject atm and you really do make studying for my assignments easier! Thanks!
Such an hohroble person: you have a very special way to deliver your lessons:
*honorable
I read that as "horrible"
Lol 🤣🤣😂😂
The last tip is a poggers moment.
13:18
If you are using NetBeans click (Alt + Ins) >> If you are using a LapTop like me, you will find (Ins) in the numbers pad on your right-hand side.
Thank you bro!
You don't know how much this has cleared for me
You are the organic chemistry tutor of programming. Thank you!
Alex is literally in a class of his own at teaching Java
you can also generate getters and setters automatically in eclipse by doing:
Source --> Generate Getters and Setters
picking the variables then 'Generate' (you can also choose modifiers) and it will generate those for you
You are a live saviour, legit my teacher can't explain for the life of him
Superb I couldn't understand this when my lecturer taught me but after seeing yours I can
I LOVE ALL YOUR VIDEOS! Thanks a lot
I'm starting java this semester and I'm trying to wrap my head around OOP. Thank you sooo much So helpful!
Thank you very much. I was thinking it's gonna be very hard, but you're teaching very easy.
That trick using Eclipse to generate the getters and setters was really neat!! Thank you!
You are amazing. I thank God that you made this tutorial because not gonna lie, I need you in my life 💯
Man, now everything makes sense...thank you so much for making these videos :)
Thanks once again Alex, appreciate all you do for us here on RUclips. Very helpful! :)
Thanks a lot ! I actually tried finding a video explaining this keyword and getter and setter for over 4 hours, and I found this now. You actually make concepts a lot easier to understand. And thanks again, I needed this for an assignment.
Damn, you explain better than my college techer, what a legend. Keep it up man
that shortcut at the end was absolutely insane lol thank you so much
One of my favorite videos you've ever done. Thank you, Alex!!
Alex! thank you; i finally understand setters and getters after watching this :)
My professor didnt explain this to us, but now i have u.
Dude Thank you so muchhhh for create these videos 🥺❤️❤️ They don't teach us anything at uni . Your videos helped me a lot .Thank you wish you the bests 🙏🏻
You are the master of java. I really love your explanation at the end. Love from INDIA
million thanks, Alex. Your tuts have simplified my study life in Java.
Couldn't understand the concept but gosh Thank You for the simple and clear explanation!!!
My job depends on my java understandings.. I'm lucky I have your videos now..! Thankyou ^_^
Alex!!! Thanks so much for all your videos! I've just started my Java course and your video's really help me out a lot!
Can you make a tutorial on abstract classes and interfaces
Okay since today you're my favorite kind person on earth 💐
Finally, someone explained it to me. Thanks, Alex
the trick in the end was amazing
Hey, just wanna say you're really awesome! Your tutorial really helps and its very easy to understand. My professor's teaching is nowhere near your teaching. I hope you continue to make these videos, thank you so much for these!
bro when I close my eyes that's my world without you bro :')
no homo
THANK YOU SO MUCH! you're so much better than my current professor in university (no offense to him but I got so frustrated that I didn't get what he said because he keeps over complicating and over explaining his lessons that I got confused) but this is all the lesson had to say ;-;
Holy crap I'm glad I stuck around for the bonus tip! thanks for the video Alex
Great video again!! 😊👍 But i wonder if you, in the future can make seperate class files for the methods etc...since that is actually how the program has to be stuctured. But by all means, love you videos!!❤
Thanks a lot man! You're the best. I finally got this, been struggling with it for quite a while.
the last tip was like "aaaaaaaaaaaa....!!" thank you for sharing.
ur videos + codegym = junior
thank u
not related to java but I LOVE LISTENING YOUR VIDEOS BECAUSE OF YOUR KEYBOARD TOO SO RELAXING (KEYBOARD ASMR)
Im second year college BSIT i learned alot in your videos please make more videos...
Alex, you’re the teacher we needed! 👏🏽
am very very much impressed by this am 18 yrs of age thumb up for good work thanks a lo
Thanks for this very helpful. PS - You only need to type syso + Ctrl+Space to save a few keystrokes each time.
Thanks for this! I've been able to complete my Performance Task. I appreciate you sir!
Now that I found the best explanation 👌 Thank you Alex so much 🙌🏼
Thank you so much for this video! I am trying to learn java in my freetime and for some reason, I couldn't quite understand what's it about with getters and setters. This video helped a lot!
You are genius! You just made my 2 hours lecture into a 14 mins video.
No exaggeration, you really helped me a lot🤗
Haha, I've gone through this before but I actually got it this time. Actually was watching more to verify this time.
Before, I had the getter backwards, thinking that getter got the value from user then passed it to the setter... which didn't make much sense haha
**Alex -- this was so much easier to follow than my own instructor, thank you! The only thing I'd like is a little slower on the ending code walk through and if you had a highlighter pointer to see where you are talking about, that would be even better! Really great though!
** Does anyone have the shortcut or plugin for Notepad ++ for the System.out.println(); ? I tried installing the QuickText plugin but I can't get it to work. We will be moving over to Eclipse soon, but we are in Notepad++ right now and it's so annoying to have to keep writing out the print method.
I remember when you was so less subscribers, I made you a few compliments back then and I wanted to join the Facebook page but I took to much time so you can accept me so , I deleted my request anyways man the reason I put another comment is that you really help people around with this videos , Alex be safe man and thanks for this videos very helpful now that I have a clue about java, now is coming together the code.
You are an actual lifesaver
when making the set and get methods, you could name the method anything and it would do the exact same thing, if the details of what the method does stays the same...
i guess its just really good practice to do so
and its really convenient
also btw ur tutorial is great!
The extra tip at the end was awesome.
I'm grateful I found this channel. Thank you very much sir!
I'll be more happy if you make a video for "Different Errors in Java programming and how to fix them" and "Shortcuts and the environment of Eclipse" (cause we can't edit in Photoshop without knowing it's tools right?)
Thank you again sirr!
big like for the bonus tip. That saves sooooo much time. Thanks! 🙏🏽🙏🏽🙏🏽
Alex I have watched many videos however you are the best !
I cried when you presented the sourcing option for setter and getters loooool, JDKs ftw!
thanks bro it helped me a lot to pass my exam thanks bro
Thanks for really sharing , good work with us, am really appreciating the good effort you are putting in. Honestly I have understood the topic well.
Thank you very much Lee