[Java] Sort solution.
\nclass Solution {\n    public String kthLargestNumber(String[] nums, int k) {\n        Arrays.sort(nums, (String o1, String o2) -> {\n            if (o1.length
```\nclass Solution {\n    public String kthLargestNumber(String[] nums, int k) {\n        Arrays.sort(nums, (String o1, String o2) -> {\n            if (o1.length() == o2.length()) {\n                return o2.compareTo(o1);\n            }\n            return o2.length() - o1.length();\n        });\n        return nums[k - 1];\n    }\n}\n```
['Java']