Hi there
I am almost 100% sure that method-chanining is supported in Java. I said "almost" because following chaining doesn't compile.
Here is the original piece of code:
I wanted to do something like this:
but this code doesn't compile.
OR in other words, why can't I do the following:
Could someone please elaborate the concept why Java compiler is not allowing to do this?
Regards,
Saeed