Package me.despical.commons.util
Class Strings
java.lang.Object
me.despical.commons.util.Strings
- Author:
- Despical
Created at 17.06.2020
-
Method Summary
-
Method Details
-
format
-
repeat
Returns a string consisting of a specific number of concatenated copies of an input string. For example,repeat("hey", 3)returns the string"heyheyhey".- Parameters:
string- any non-null stringcount- the number of times to repeat it; a nonnegative integer- Returns:
- a string containing
stringrepeatedcounttimes (the empty string ifcountis zero) - Throws:
IllegalArgumentException- ifcountis negative
-