If i input 1324,3591
It mean i want the bigger denote in order.
int x = 1324;
int y = 3591;
System.out.println(x+y);
I want the output show:
4321 and 8531
int num = x;
char[] digits = Integer.toString(num).toCharArray();
Arrays.sort(digits);
System.out.println(digits);
}
but i want use %04d to make output be 4 digit but if i change to prinf it can't run....