java put space in string after n characters

Solutions on MaxInterview for java put space in string after n characters by the best coders in the world

we are a community of more than 2 million smartest coders
registration for
employee referral programs
are now open
get referred to google, amazon, flipkart and more
register now
  
showing results for - "java put space in string after n characters"
Samantha
26 May 2019
1val stringWithSpaceAfterEvery4thChar = stringWith12Chars?.replace("....".toRegex(), "$0 ")
2
similar questions