|
|
join() function in JavaJeffrey P. Bigham |
|
Related ArticlesRelated Ads |
The Java API includes a number of useful classes for dealing with all sorts of data types. One area that I've found to be lacking are the pre-defined methods dealing with strings. For instance, coming from Perl, it would be awesome if Java had a String join function. Join takes in a number of strings, and concatenates them together with a supplied separating character in between each. Java doesn't provide it, so i provide it here.
As an alternative, the Apache Commons API provides a join method for strings in org.apache.commons.lang.StringUtils. |
|
|
|
||