| Author |
Collection
|
meeta gaur
Ranch Hand
Joined: Dec 05, 2012
Posts: 225
|
|
d
b
c
a
--------------
d
b
c
a
why doesn't reflect on stringSet ?
|
OCAJP
|
 |
Winston Gutkowski
Bartender
Joined: Mar 17, 2011
Posts: 4761
|
|
meeta gaur wrote:why doesn't reflect on stringSet ?
Why would you think it does? Nothing in the documentation says the result of toArray() is connected with the collection it was called on.
Winston
|
Isn't it funny how there's always time and money enough to do it WRONG?
|
 |
meeta gaur
Ranch Hand
Joined: Dec 05, 2012
Posts: 225
|
|
Winston Gutkowski wrote:
meeta gaur wrote:why doesn't reflect on stringSet ?
Why would you think it does? Nothing in the documentation says the result of toArray() is connected with the collection it was called on.
Winston
Because it happens in case of Arrays.asList().That's why i thought same.
|
 |
 |
|
|
subject: Collection
|
|
|