System.out.println("数组最大值:"+arr[arr.length-1]);System.out.println("数组最小值:"+arr[0]);}} 结果:该随机生成的数组:[-63093832, 1185619586, -651605519, -1104692498, 340362259, 2000723068, 527454326, -600352338, 202455880, 1325557741, -989104040, -1990963344, 951309895, 137...
System.out.println("数组最大值:"+arr[arr.length-1]); System.out.println("数组最小值:"+arr[0]); }}结果:该随机生成的数组:[-63093832, 1185619586, -651605519, -1104692498, 340362259, 2000723068, 527454326, -600352338, 202455880, 1325557741, -989104040, -1990963344, 951309895, 1378005858, 10740...
System.out.println("数组最大值:"+arr[arr.length-1]);System.out.println("数组最小值:"+arr[0]);}} 结果:该随机生成的数组:[-63093832, 1185619586, -651605519, -1104692498, 340362259, 2000723068, 527454326, -600352338, 202455880, 1325557741, -989104040, -1990963344, 951309895, 137...