By bloid
via jroller.com
Published: Aug 07 2008 / 11:39
I've been reading trough a blog describing a trick with enhanced for loop and I can't not notice the ugly use of ArrayList to create collection with a single element, but what made matter worse, is that author suggested to use 3rd party library to replace those 3 lines of code.
Comments
bloid replied ago:
relates to: http://www.dzone.com/links/for_hack_with_option_monad_in_java_at_stephans_bl.html
Voters For This Link (13)
Voters Against This Link (0)