2 Respuestas
+ 1
There’s a great site name Google (https://google.com). With it, you can search the world's information, including webpages, images, videos and more.
Using Google, search up “java repeat string n times” and I assure you you will find an answer.
0
There are java libraries called StringUtils and String. You can use those to repeat a string the no. Of times you need...
Ex: StringUtils.repeat("xyz",10)
OR
Strings.repeat("xyz",10)
Anything..your wish