[JAVA] Using List of int array
\n   public int[] sortJumbled(int[] mapping, int[] nums) {\n        List<int[]> al = new ArrayList<>();\n        for(int n: nums){\n            String s = Strin
```\n   public int[] sortJumbled(int[] mapping, int[] nums) {\n        List<int[]> al = new ArrayList<>();\n        for(int n: nums){\n            String s = String.valueOf(n);\n            StringBuilder sb = new StringBuilder();\n            for(char c: s.toCharArray()){\n                sb.append(mapping[c-\'0\']);\n            }\n            al.add(new int[]{Integer.valueOf(sb.toString()), n});\n        }\n        Collections.sort(al, (a,b)-> a[0] - b[0]);\n        int[] ans = new int[nums.length];\n        int idx = 0;\n        for(int[] arr : al){\n            ans[idx++] = arr[1];\n        }\n        return ans;\n    }\n```
[]