public String reverse(char[] s, int i, int j){ while(i<j){ char temp = s[i]; s[i]=s[j]; s[j]=temp; i++; j--; } return new String(s);}
Here is Dev Jinwon's Share
Joined Date : 2017-09-29