This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
The moose likes Beginning Java and the fly likes Collection Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Collection" Watch "Collection" New topic
Author

Collection

meeta gaur
Ranch Hand

Joined: Dec 05, 2012
Posts: 305


d
b
c
a
--------------
d
b
c
a

why doesn't reflect on stringSet ?


My one regret in life is that I am not someone else.
- Woody Allen
Winston Gutkowski
Bartender

Joined: Mar 17, 2011
Posts: 8661
    
  23

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?
Articles by Winston can be found here
meeta gaur
Ranch Hand

Joined: Dec 05, 2012
Posts: 305

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.
 
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com
 
subject: Collection
 
It's not a secret anymore!