I\'m trying to sort the digits of an integer of any length in ascending order without using Strings, arrays or recursion.
Example:
Input: 451467 Outp
class SortDigits { public static void main(String[] args) { int inp=57437821; int len=Integer.toString(inp).length(); int[] arr=new int[len]; for(int i=0;i