0

How to reverse string in java? without changing some string position

For examples: Input should be : hi.hello.to.the.world output should be : dl.rowe.ht.ota.llehih Position of "." should not change prom input

22nd Mar 2018, 1:48 PM
karthick
2 ответов
+ 9
https://code.sololearn.com/cE4qZAIUBA5G/#java like that. but change the string you want to reverse or change it with user input hope you understand it :D
22nd Mar 2018, 2:15 PM
Baraa AB
Baraa AB - avatar
+ 1
Hi baraa, Thanks for responding But output should be “rkabi.baa.arab” First letter having characters, that 5 letters should replace from the last last 5 characters.but “.” Should not change
22nd Mar 2018, 5:01 PM
karthick