공부
[Java] StringUtils.repeat("asdf", 3)
승가비
2021. 1. 31. 20:34
728x90
https://stackoverflow.com/questions/2255500/can-i-multiply-strings-in-java-to-repeat-sequences
Can I multiply strings in Java to repeat sequences?
I have something like the following: int i = 3; String someNum = "123"; I'd like to append i "0"s to the someNum string. Does it have some way I can multiply a string to repeat it like Python do...
stackoverflow.com
728x90