import java.util.*;
/**
* @author hardneedl
*/
final class Scan {
public static void main(String... args) {
Scanner scanner = new Scanner(System.in);
ListL = new ArrayList<>(10);
int i = 0;
while (i < 10) {
System.out.printf("输入第%d个整数:",(i+1));
L.add(scanner.nextInt());
i++;
}
System.out.printf("最大值是%d",L.stream().max(Integer::compareTo).get());
}
}