commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Gabriele Kahlout (JIRA)" <>
Subject [jira] [Created] (LANG-701) VarArgs Join
Date Sat, 21 May 2011 16:46:47 GMT
VarArgs Join

                 Key: LANG-701
             Project: Commons Lang
          Issue Type: New Feature
          Components: lang.text.*
            Reporter: Gabriele Kahlout
            Priority: Minor

final String apple = "apple";
        final String banana = "banana";
        final String orange = "orange";

        final String expected = apple +  SPACE + banana + SPACE + orange;
        final String  actual = join(SPACE, apple, banana, orange);

        final int expLength = expected.length();
        final int actLength = actual.length();

        assertEquals(expLength, actLength);

        assertEquals(expected, actual);

I missed the functionality of joining strings with the space separator in one line. BTW, why
space ' ' not a constant field anywhere?

This message is automatically generated by JIRA.
For more information on JIRA, see:

View raw message