file under misc.

stuff which doesn't fit anywhere else 
« Back to blog

Why doesn't Java have a join() method?

I'm tired of writing my own. Any language that supports collections and/or iterables should allow me to specify a delimiter and create a string from the collection.

Oh well, here's the latest one.

Loading mentions Retweet

Comments (1)

Jan 14, 2010
Kevin Hill said...
I realize I have unnecessary import statements in this example. They were remnants from an earlier version which a simple application method for testing purposes. This oversight doesn't invalidate my point, though.

Leave a comment...

 
To leave a comment on this posterous, please login by clicking one of the following.
Posterous-login     twitter