-
Notifications
You must be signed in to change notification settings - Fork 8
Closed
Description
This function throws a StringIndexOutOfBounds if the words collection is
empty ...
class SimpleNamingContext ... {
...
public static String joinWithString(String seperator, Collection<?>
words) {
String ret = "";
for (Object s: words) {
ret+=s.toString()+seperator;
}
return ret.substring(0, ret.length()-seperator.length());
}
Original issue reported on code.google.com by dob...@gmail.com on 11 Sep 2009 at 5:16
Reactions are currently unavailable