test4.2
来源:互联网 发布:swift权威编程指南 编辑:程序博客网 时间:2024/05/29 17:21
/*target:produce 25 random value,and compare them;
* methods:use Random and if/else
*/
import java.util.*;
public class Test2 {
public static void main(String[] args) {
Random rand=new Random(50);
for(int i=0;i<25;i++)
{
int m=rand.nextInt(50);int n=rand.nextInt(50);
if(m>n)
System.out.println("Bigger");
else if(m<n)
System.out.println("Smaller");
else
System.out.println("Equal");
}
}
}
* methods:use Random and if/else
*/
import java.util.*;
public class Test2 {
public static void main(String[] args) {
Random rand=new Random(50);
for(int i=0;i<25;i++)
{
int m=rand.nextInt(50);int n=rand.nextInt(50);
if(m>n)
System.out.println("Bigger");
else if(m<n)
System.out.println("Smaller");
else
System.out.println("Equal");
}
}
}
0 0
- test4.2
- test4-2(泰勒公式)
- TEST4
- test4
- test4
- test4
- test4
- test4
- test4
- test4
- test4
- test4
- test4
- test4
- Test4
- Test4
- Test4(2)求一个n阶方阵对角线元素之和
- 学校Test4
- 打开系统相册/相机,选择图片
- hdoj 4496 D-City 【并查集】
- Python多版本管理软件pyenv的安装应用及pip的使用讲解
- UIWebView——>一个简单的网页加载
- junit的使用
- test4.2
- Linux下配置属于自己的vim编辑器
- 根据日期判断星期几(使用基姆拉尔森计算公式)
- jquery validate 详解
- 9.17异常处理
- android 使用activity自定义下拉选择列表
- 中国剩余定理
- HDU1213——Farm Irrigation(并查集)
- ios 爱行华夏 技术支持