Stringstring="adcbgekhs";StringsortedString=sortWithArray(string);System.out.println(sortedString);//The custom sorting function using arraysstaticStringsortWithArray(Stringstr){chararr[]=str.toCharArray();chartemp;inti=0;while(i<arr.length){intj=i+1;while(j<arr.length){if(arr[j]<arr[i])...