Sorting arrays can be as easy as using the Arrays.sort method but check thios video to see how to sort the digits of an integer. We will soon upload a video where we use these methods of sorting the integers to prove Kaprekar's constatnt. This time we will explain the program very well.