• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
Stan F Smith
Greenhorn
Posts: 20
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic