想偷懒就2行代码 import java.util.Arrays; public class Solution{ public int findKth(int[] a, int n, int K) { Arrays.sort(a); return a[n-K]; } }