Add StringUtils.repeat with separator
-------------------------------------
Key: LANG-348
URL: https://issues.apache.org/jira/browse/LANG-348
Project: Commons Lang
Issue Type: New Feature
Reporter: Kees van Dieren
Priority: Minor
I would like to have a repeat method with the ability to set a separator:
public static String repeat(String str, char separatorChar, int repeat)
Usage scenario: generate insert statements for JDBC preparedstatements:
assertEquals("?,?,?,?", StringUtils.repeat("?", ',', 4));
Can this be added to commons-lang?
Thanks!
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]