摘要:
while循环语句 while先判断为真,再执行while循环语句,如果条件为假,则跳出循环 语法如下: While(条件表达式){ 执行语句 } 例: public class Denon { public static void main(String[] args) { int num = 1 阅读全文
摘要:
java.util.Random类生成随机数 public int nextInt() :随机生成一个int型数值 public int nextInt(int n):随机生成一个 >=0 并且 0 public long nextLong() :随机生成一个long型数值 public float 阅读全文