File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Beginning Java and the fly likes Is this the right way to to use a List<>? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Is this the right way to to use a List<>?" Watch "Is this the right way to to use a List<>?" New topic
Author

Is this the right way to to use a List<>?

Stan F Smith
Greenhorn

Joined: Jun 28, 2011
Posts: 20
Hello,
this just looks to me like it could be better....
When I did this the first time I found that when I clear the list that the list it was added to was also cleared (line of commented code). To fix this I added the method addfileList(), I add it to the list that way. It seems kinda sketchy to me, is there a better way to do this?



Thanks
T
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Is this the right way to to use a List<>?