티스토리 뷰

공부

[Java] StringUtils.repeat("asdf", 3)

seunggabi 승가비 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

'공부' 카테고리의 다른 글

[Python] has key dict  (0) 2021.02.09
[Sh] date this sunday `date +%Y%m%d -d 'next sunday - 1 week'`  (0) 2021.02.03
[Java] StringUtils.repeat("asdf", 3)  (0) 2021.01.31
[jQuery] each()  (0) 2021.01.31
[JS] moment.js moment().format('YYYY-MM-DD')  (0) 2021.01.31
[Python] from & import  (0) 2021.01.23
댓글
댓글쓰기 폼