import java.util.Arrays;
import java.util.List;
import java.util.Vector;
public class B23 {
public static List<Integer> max5(List<Integer> lst){
if(lst.size()<=5) return lst;
int a = ; //填空
List<Integer> b = max5(lst);
for(int i = 0; i< b.size();i++){
int t = b.get(i);
if(a>t){
;//填空
a = t;
}
}
return b;
}
public static void main(String[] args) {
List<Integer> lst = new Vector<Integer>();
lst.addAll(Arrays.asList(12,127,85,66,27,34,15,344,156,344,29,47));
System.out.println(max5(lst));
}
}
------解决方案--------------------
int a = lst.remove(lst.size()-1);
lst.set(i, a);