V
VisionSet
public String[] getMyStrings();
public List<String> getMyStrings();
Which is better now we have generics?
Lets assume we don't have any overhead with converting within the method if
we had the wrong type - Collection to Array or vice versa.
It seems to me that the latter is usually the way to go, since you can often
go through an App without having to convert to an array at all.
I suppose the former is quicker.
But I'd love to here other convincing arguments.
public List<String> getMyStrings();
Which is better now we have generics?
Lets assume we don't have any overhead with converting within the method if
we had the wrong type - Collection to Array or vice versa.
It seems to me that the latter is usually the way to go, since you can often
go through an App without having to convert to an array at all.
I suppose the former is quicker.
But I'd love to here other convincing arguments.