import java.util.Random; /** * 获取最大值最小值 * @author shaobn * */ public class Test2 { public static void main(String[] args) { Random random = new Random(); int[] a = new int[10]; for (int i = 0; i < 10; i++) { a[i] = random.nextInt(100)+1; System.out.p…