总结:不会用,就是不熟

package com.s.x;
//输入10个随机数,并显示最大值,最小值
import java.util.*;
public class Value {
	public static void main(String[] args) {
		int a[]=new int[100];//定义一个存放10个元素的数组
		for(int i=0;i<100;i++){
			a[i]=(int)(Math.random()*10);
			
		}
		
		for(int i=0;i<100;i++){
			a[i]=(int)(Math.random()*10);//因为我刚才并没有输入随机数
			if(i%10==0){
				System.out.println("");
			}
			System.out.print(a[i]);
		}
	}
}

  

相关文章:

  • 2021-08-17
  • 2021-12-23
  • 2022-12-23
  • 2021-12-05
  • 2022-12-23
  • 2021-06-23
  • 2022-01-02
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-06-03
  • 2021-12-03
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案