Is there any way to declare such static variables in java by which I can return java object after their initialization for example
We can do this in python like this
schedule.every(10).minutes.do(job)
Where, by calling every(10). minutes I just initialize minutes variable.
Is it possible to do such things in java too?
Something like this:
Myclass.function().variable.anothorFunction();
EDIT:
As in case of methods, I can easily do this in java too like this.
public static MyClass function(){
return new MyClass();
}