1.
import java.util.Arrays; import java.util.Scanner; public class arrays { public static void main(String[] args){ Scanner sc=new Scanner(System.in); String str=sc.next(); char[] charArray=str.toCharArray(); Arrays.sort(charArray); for(int i=charArray.length-1;i>=0;i--){ System.out.print(charArray[i]+"\t"); } } }