Java编程、输入数字个数、平均数、最小值、最大值减去最小值、write a JAVA program to read in a sequence of integers and print out the following quantities,each on a new line and in the following order,your program should be:1) the number of integers read in.2) the average value- which need not be an integer.注意,平均值不是实数!3) the minimum value of the integers.4) the maximum difference between any of the integers.以上要求顺序不能颠倒、跪求!

问题描述:

Java编程、输入数字个数、平均数、最小值、最大值减去最小值、
write a JAVA program to read in a sequence of integers and print out the following quantities,each on a new line and in the following order,your program should be:
1) the number of integers read in.
2) the average value- which need not be an integer.注意,平均值不是实数!
3) the minimum value of the integers.
4) the maximum difference between any of the integers.
以上要求顺序不能颠倒、跪求!

测试通过,基本满足你题目要求,写得不太好import java.util.*;import java.util.regex.*;public class t10{public static void main(String [] args)throws InterruptedException{Scanner in=new Scanner(System.in);...