src/org/kocakosm/pitaya/util/Strings.java
public static String repeat(String str, int count)
	{
		Parameters.checkCondition(count >= 0);
		StringBuilder sb = new StringBuilder(str.length() * count);
		for (int i = 0; i < count; i++) {
			sb.append(str);
		}
		return sb.toString();
	}
public static String repeat(String str, int count)
	{
		Parameters.checkCondition(count >= 0);
		StringBuilder sb = new StringBuilder(str.length() * count);
		for (int i = 0; i < count; i++) {
			sb.append(str);
		}
		return sb.toString();
	}
Returns the {@code String} obtained by repeating {@code count} times
the given {@code String}.

@param str the {@code String} to repeat.
@param count the number of times the {@code str} has to be repeared.

@return the created {@code String}.

@throws IllegalArgumentException if {@code count} is negative.
@throws NullPointerException if {@code str} is {@code null}.