Nicola Ken Barozzi wrote:

With Java 1.5, AKA Tiger, Java will get varargs support, which means that methods can have a variable number of parameters.


Imagine

log("The error", a, c, exception, f[i])

Instead of

log("The error "+ a + "\n"+ c + exception.toString + String.valueOf(f[i]))

@see http://www.madbean.com/blog/22/

One could already accomplish the same thing with

log(new Object[] {"The error ", a, "\n", c, exception, f[i]});

So what was the rationale behind introducing the new syntax?

Ray



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to