tag:blogger.com,1999:blog-5638372.post112912301567388389..comments2023-10-10T05:22:56.347-05:00Comments on binkley's BLOG: Arrays and CollectionsBrian Oxleyhttp://www.blogger.com/profile/06617364377560752378noreply@blogger.comBlogger2125tag:blogger.com,1999:blog-5638372.post-1129204218466246412005-10-13T06:50:00.000-05:002005-10-13T06:50:00.000-05:00Yah, the javadocs for the sample method do require...Yah, the javadocs for the sample method do require modifiability.<BR/><BR/>Good practice usually disallows such returns, however, so the example is a little far-fetched.Brian Oxleyhttps://www.blogger.com/profile/06617364377560752378noreply@blogger.comtag:blogger.com,1999:blog-5638372.post-1129203331717350162005-10-13T06:35:00.000-05:002005-10-13T06:35:00.000-05:00Personally I'd just return:Collections.unmodifiabl...Personally I'd just return:<BR/>Collections.unmodifiableList(foo);<BR/><BR/>But I assume that the point of your post was to return a, modifiable, copy.<BR/><BR/><BR/>Great blog btw, keep it up :)MÃ¥rten Gustafsonhttps://www.blogger.com/profile/17510468447199240181noreply@blogger.com