Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial


Debajyoti Chanda
Debajyoti Chanda
328 Points

You have mentioned method chaining in this video. No reference to that in Java basic courses. Did I miss something?

Craig has mentioned method chaining during jshell demo. This topic is not covered in the Java basics. Did I miss something?

1 Answer

Presley Cobb
Presley Cobb
971 Points

It's a pretty straight forward concept from left to right run the function. think of it like this 2 + 3 - 8. each number is a value and the plus and minus is the function you are running on the values. So take 2 then run the plus function on it that gets passed the value 3. Then take 5 and run the minus function that gets passed 8 ect. Of course you do t always have to pass a value in programming but it just makes the analogy easier to understand.