Given a character c and a number n, how can I create a String that consists of n repetitions of c? Doing it manually is too cumbersome:
StringBuilder sb = ne
If you can, use StringUtils from Apache Commons Lang:
StringUtils.repeat("ab", 3); //"ababab"