Hi guys I just try this sample question :
I was sure at 110% that code compile and run without exception and .....
I go to the API doc and see
asList(T... a) : Returns a fixed-size list backed by the specified array.
ARghhhhhhhhhhh I thinhed that the first specifities of collection vs arrays was that collections has no fixed size ... :/
So my question : is there another method to fixed size for collection, and if there is another method is it only for List, ot also for set, map etc ...
Thanks.
I was sure at 110% that code compile and run without exception and .....
I go to the API doc and see
asList(T... a) : Returns a fixed-size list backed by the specified array.
ARghhhhhhhhhhh I thinhed that the first specifities of collection vs arrays was that collections has no fixed size ... :/
So my question : is there another method to fixed size for collection, and if there is another method is it only for List, ot also for set, map etc ...
Thanks.