JAVA每日总结2021.9.28
今日学习:

代码:
package MethodBasic;
public class Junzhe {
float x;
public float rand()
{
x=(45826*x+75369)%78654;
return x;
}
public static void main(String[] agrs) {
Junzhe a = new Junzhe();//用类!!
for(int i=1;i < 1000;i++) {
float s;
s= a.rand();//循环调用方法名
System.out.println(s+"");
}
}
}

浙公网安备 33010602011771号