[Java] Nested methods vs "piped" methods, which is better?
- by Michael Mao
Hi:
Since uni, I've programming in Java for 3 years, although I am not fully dedicated to this language, I have spent quite some time in it, nevertheless. I understand both ways, just curious which style do you prefer.
public class Test{
public static void main(String[] args)
{
System.out.println(getAgent().getAgentName());
}
private…