Java Method Chaining Tutorial #85
Вставка
- Опубліковано 17 тра 2024
- $1,000 OFF ANY Springboard Tech Bootcamps with my code ALEXLEE. See if you qualify for the JOB GUARANTEE! 👉 bit.ly/3HX970h
Method chaining in java looks like this:
myObject.someMethod().someOtherMethod().fart();
As long as the previous method returns an object, you can still use methods that the object knows!
I hope you enjoyed this java method chaining tutorial!
Full Java Tutorial For Beginners Playlist: • Full Java Course by Al...
Free Tips: bit.ly/3U6HXcb
Disclosure: Springboard link provided is linked to my affiliate account & supports the channel.
Alex 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
Very recently discovered this channel. I used to hate school and hated learning as a result. I've recently had a change of perspective on life and this channel was just what I needed to get me back into learning again. Thanks so much Alex.
you prolly dont care at all but does anyone know a tool to get back into an Instagram account?
I stupidly forgot the login password. I would appreciate any tricks you can give me
never seen anyone show me this before, thanks.
I've finally watched all of your videos. Got through them today. They have helped SO MUCH. I am 44 years old and a seasoned COBOL professional. I never had much interest in pursuing the newer languages however my job is now going that direction and has been converting old legacy systems to newer technologies. While I am sad to see COBOL dying at my place of emplyment, I am happy that your videos have really boosted my confidence in java. THANK YOU!!
you're welcome :)
these java tutorials are honestly very helpful, thx for all of this alex, you man, are the best!
I love your videos!! It feels like I’m learning from my senior peers and you explain parts of topics that professors always seem to fail at teaching. Thank you!!
I don't even take Java anymore but I still watch this man, absolute legend.
I'm 3ish years into my CS BS, and I'm so glad you covered this. I know how to do this already (kinda) but I'm SO glad I have an AlexLee-explaination now.
It's amazing how you understand something simple at beginning, then a year later seeing multiple chainedmethods in online class freaks me out, i find this video and it explains to me chaining much better and in depth from the previous time i 'undertood' it, thanks man you rock!
Thank you so much Alex for these Java tutorials. These have been very helpful for me. I look forward to more.
Best UA-camr for Java tutorials ever.
This explanation here is gold material:
5:47
I struggle a lot with constructors for some reason so it's a good combo as well. Thanks for sharing your knowledge!
Typing "Student" is not easy, eh? xD
You are doing a great job with these tutorials! I like how you give very clear examples that make sense and it's easy to understand them. I am a CS student but by coincidence I didn't like the programing at all, now I decided to give it a new chance and I started reading a Java book and after every article I watch you videos to make the things even more clear! Thank you and keep it up! :)
Hey! You are doing a good job breaking down Java concepts in an easy-to-understand way. What you’ve done here is very similar to the Builder design pattern!
Thank you! nice explanation.
You're the best Java teacher
I had thought java was quite hard ( from the memes ) but you make it very easy, really amazing tutorial
Very nice explained 💐
Hello alex, I love your Java tutorial you are really helping me❤️, but can you please make a video on array sorting techniques?
Bro, you are genius!!!
Cool, I have been trying to understand how to do this, even looking for example into compiler but no clue on it, finally I got the answer, returning the same object!!
I did not know about chaining methods until today, I was doing my demo today and when I was asked about chaining methods I froze. Thank you for this tutorial .
Happy Teachers'Day to you Sir... love from India!
Thanks for being such a wonderful teacher...may God's blessings always be with you and your family! ❤️❤️☺️
There are some really interesting things you can do with method chaining if you treat each step as immutable. Makes it so you can have a reusable base for example
Please upload more videos Sir. Once in a week is very less. btw I love ur videos.
I am 11 and I wanted to learn Java .Thus I started off you channel helps a lot. Even thought I watched many other channels to learn this is thicc(good) also I am dev a game lol
Thank a lot
Hi, do you think you could do a tutorial on Java generics? Your videos are awesome. Ty
Thank you so much you saved my GPA tbh
I really learned.. No u just directed me to learn. Thanks :)
Dude this channel is growing like hell
Could u possibly do a video on radix sort?
The way you say I never understood it in my college days in most of your videos makes me wonder where else you learnt all these cool stuff.
I think that’s today’s reality of some colleges which leave their students with pile of debts but no real knowledge.
Anyways, thanks for producing these wonderful videos and content and making people’s lives easier.
Hey Alex! Have you considered doing a video on vectors?
I learnt some of java programming but need some help to create a java program to give an review and feedback rating for an general products please help me
love U bro!
i think you must share these courses on udemy or other online course platforms. your speech and explanation is really well understandable
Hi, can you please make a tutorial about generics? It would be very helpful!
Thanks! I have learned so much from your tutorials. But finally I gave up with programming,,gave up with my job and everything. Trying to figure out what Im gunna do next. All I got is rid of frustration.
Even I’m not goin back to programming I will be watching your videos.😊😊
Gl withever youre gonna be doing!
Hi Alex , plz start advanced java concept plz 😊
Can u pls do a program for the locker problem
How do you loop a inputted name with do while? Simply, how do you make two different inputted string the same?
When ever I watch Alex vids, I instalike xD
The best
0:48 Doug Dimmadome? Owner of the Dimmsdale Dimmadome ?
Mr Lee
how to access methods of one class to another class,?
This is the first time i am taking Java programming class the professor told me for my final project i want to build the java application for special need kids with sing language this displays Alphabets A means its displays the sign language picture and displays A..I don't have any idea would you give some suggestion help me thanks
Hey, one question: Why is there a warning sign at my java project on the left side of the eclipse IDE? You have too at your Javatutorials and TenPrograms projects.
Thank you for help! Can somebody please help me?
Clips.ツ hey, i‘m not sure, but I think this warning sing means that you have unused variables or objects in your project.
For example, imagine you have this line of code:
int i = 5;
If you never use this variable to create some output, the warning sign appears.
So the IDE wants to remind you that you should either do something with this variable or delete it, because it currently doesn‘t affect your output.
Hey I saw your basic playlists . It was damn a
And I came here to say that I really need a tutorial on function overload in java. Can you please make one??
Sir your class is very awsome . I am interested to do your CyberSecurity Course but i am in bangladesh.
May i get your course?
Make a video about overriding, please. I need your help!
Fast approaching 100K
Can you please make a Java tutorial on how to add sprite's (image's)?
Can you make a tutorial about java suppliers?
Hey You should start a web scraping series
Honestly, I`m seeing it for the first time.
Need help...
I want to make program where it asks a question and you answer. Then after answering it disappears and a new question comes up. How do I do it?
I can do the question and answer pary but not the disappearing part. Need help ;-; need it for a project, please help thank you!
@Ash The Bird i figured it out already. But still, thank you for replying!
hey can u pls tell how to convert a Ljava.lang.String to java.lang.String??? i used toString() but it didnt work.... pls help out a fellow subscriber
Hi alex😊
Wat has he not covered? HES DONE EVERYTHING
LibGDX, java3d, java discord API, Minecraft modding
Minecraft plugins xDD
@@CMGogeta Didnt I already say that?
@@obamabinladen2206 Modding and doing plugins isn't the same bruhmomento...
How it last to.learn java good
Hey bro..Can you please make a video on how to acces the private methods of one class from outside of that class??
You can`t. That`s the point of private access modifier.
@@ariton2990 yes we can ...That is through reflection API
@@sujitpradhan1004 I see. Well here is a nice tutorial that I found on how to do it:
tutorials.jenkov.com/java-reflection/private-fields-and-methods.html
Have you learned to back flip?
Where can I find the same decently "Alex-style" series about Python on UA-cam?
;_;
cs dojo
Bro code is the best
He is mrbeast no relation Voice face = he's mrbeast
It seems like you spent a little time to figure out what's the problem in the "int grade = grade;" line :D
You forgot to link your "this" video even though you said you would. :)
ah, thank you :)
I like your videos but when there is a background music I cannot concentrate on what you are teaching. As I was going to exit your video I decided to write why do you have to use music in your videos! and guess what the music stooped! So I am here watching and listening and I love your videos the ones without the music background. Thank you
No
make a 2d game in java
package tutorials;
import Globe.*;
import Apps.UA-cam.*;
Public Class MethodChaining {
public static void main(String[] args){
Person p = Globe().getPeople().get(People.ALEXLEE);
p.getLaptop().apps().UA-cam().uploadVideo(VideoType.JAVATUTORIAL, “Method Chaining”);
}
}
☕️
ur voice sounds like mrbeast by the way verify ur youtube account u will start earning money
first
no views but 4 likes,1 from me.
Good.
package javaapplication13;
public class JavaApplication13 {
public static void main(String[] args){
Student s = new Student();
s.setAge(19).setName("Kevin");
System.out.println(s.getAge() + s.getName());
}
}
class Student{
private String name;
private int age;
public Student() {
}
public Student(String name, int age) {
this.name = name;
this.age = age;
}
public Student setName(String name){
this.name = name;
return this;
}
public Student setAge(int age){
this.age = age;
return this;
}
public String getName() {
return name;
}
public int getAge() {
return age;
}
}