Java method chaining ⛓️

preview_player
Показать описание
Java method chaining

#Java #method #chaining

public class Main {

public static void main(String[] args) {

// method chaining = a common syntax for invoking multiple method calls in OOP
// condense code into less lines

String name = " bro";




}
}
Рекомендации по теме
Комментарии
Автор

public class Main {

public static void main(String[] args) {

// method chaining = a common syntax for invoking multiple method calls in OOP
code into less lines

String name = " bro";

//name = name.concat(" code ");
//name = name.toUpperCase();
//name = name.trim();

name =

System.out.println(name);

}
}

BroCodez
Автор

This channel is really underrated, keep making those coding tutorials, lots of love

devishhiwarale
Автор

I'm currently here right now because I discovered that this is one of the topics not covered in the all-in-one version of the video. I think 19 topics are missing there.

I'm about to finish that 12 hour version tutorial. And starting to grasp and understand some codes, but still need my notes as I try to setup my own coding.

marxLz
Автор

Thank you for your great explanation.
But by the chained version of the code, does it trim the string first, then touppercase, then concat or is it backwards?

mtroska
Автор

hey! thx for video :) one question: methods are executed from left to right?

maksimmakarov
Автор

hi, how to limit method chain to some perticular function ? returning this will give all method access, and i am trying to make a routing package where i need to return a chain of method like router.get() here i only want to return get, post and other method but i have many methods in class that all are showing up, i also have applyMiddleware() method that i only want after method is selected but it is showing while accessing router.* anything

creative-commons-videos
Автор

Can you make a 2D random terrain generator

gamingcool