3 lines | java
extract digits into array\n2. sort\n3. use first and 4th element to make one number and 2nd and 3rd to make another number  and return the sum of the numbrs\n\n
1. extract digits into array\n2. sort\n3. use first and 4th element to make one number and 2nd and 3rd to make another number  and return the sum of the numbrs\n```\n public int minimumSum(int num) {\n        int []a={ num%10,(num/10)%10,(num/100)%10 , (num/1000)%10};\n        Arrays.sort(a);\n        return a[0]*10+a[3]+a[1]*10+a[2];\n    }\n```
['Java']