获取list中的最大值

java.util

List numList = new ArrayList<>();
Integer max = Collections.max(numList);

你可能感兴趣的:(JavaSE基础,#,java工作,java)