how to write java pro of to rewite STRING TO GINRST IN alphabetical order ?