Quantcast
Channel: coder i|o: #generics
Viewing all articles
Browse latest Browse all 59

Overload API methods with care – the sequel

$
0
0

From Javalobby:

I promised a sequel as I have encountered more trouble than that, so here it is. Varargs are another great feature introduced in Java While being merely syntactic sugar, you can save quite some lines of code when passing arrays to methods:. Method declarations with or without varargs public static String concat1(int[] values) public static String concat2(int...

Click here to read more

Tagged: #java #compilers #apis #generics


Viewing all articles
Browse latest Browse all 59

Trending Articles