What is this line of code means?
Hi have a general question, I am not sure if it right place to ask. But I will be grateful if some body could help on this one. I could not figure out what is that line of code (**) is doing or what does it mean. I gave sample implementation here.
Public class Decoder{
InputStream in
Public Decoder(InputStream in){
This.in = in;
String st = somefunction(in)
}
public static Xval decode(InputStream in){
return new Decoder(in).decode(); **
}
}
What I don齮 understand that what is line of Code do 齬eturn new Decoder(in).decode(); ? I have never seen this kind of implementation. The return type is Xval but the function is retrunin t object of this (Decoder) type. And what is Decoder(in).decode() when function decode() is doing nothing except returning a object?
Thank you

