0
点赞
收藏
分享

微信扫一扫

new Random().nextInt

扬帆远航_df7c 2022-08-19 阅读 52

public static void main(String[] args) {
System.out.println(new Random().nextInt(0));
}

 

Exception in thread "main" java.lang.IllegalArgumentException: bound must be positive
at java.util.Random.nextInt(Random.java:388)

 



举报

相关推荐

0 条评论