fork download
  1. public class Main {
  2. // Java程序固定入口方法,所有可执行代码必须放在这里
  3. public static void main(String[] args) {
  4. int num=(int)(Math.random()*10);
  5. System.out.println(num);
  6. }
  7. }
Success #stdin #stdout 0.07s 54588KB
stdin
Standard input is empty
stdout
3