# 按以下要求实现程序功能

<p>从键盘输入5个整型值
1&#xff09;按从大到小顺序排序方法&#xff1b;
2&#xff09;计算这些数的平均值的方法&#xff1b;
3&#xff09;在主方法中调用这些方法&#xff0c;并输出相应的值。</p>

## template

```java
import java.util.*;
class java_7445932 {
	public static void main(String[] args) {
		List<Integer> list = new ArrayList<>();
		Scanner scanner = new Scanner(System.in);
		for (int a = 1; a < 6; a++) {
			System.out.print("请输入第 " + a + " 个值：");
			list.add(scanner.nextInt());
		}
		System.out.println(descending(list));
		System.out.println(getAvg(list));
	}
	public static List<Integer> descending(List<Integer> list) {
		list.sort(Collections.reverseOrder());
		return list;
	}
	public static Double getAvg(List<Integer> list) {
		return list.stream().mapToInt(Integer::new).average().getAsDouble();
	}
}
```

## 答案

```java

```

## 选项

### A

```java

```

### B

```java

```

### C

```java

```