Wizard.java
上传用户:hensond
上传日期:2021-12-27
资源大小:817k
文件大小:1k
- package com.company.section3;
- import java.util.Random;
- /**
- * @author cbf4Life cbf4life@126.com
- * I'm glad to share my knowledge with you all.
- * 按照步骤执行的业务逻辑类
- */
- public class Wizard {
- private Random rand = new Random(System.currentTimeMillis());
- //第一步
- public int first(){
- System.out.println("执行第一个方法...");
- return rand.nextInt(100);
- }
-
- //第二步
- public int second(){
- System.out.println("执行第二个方法...");
- return rand.nextInt(100);
- }
-
- //第三个方法
- public int third(){
- System.out.println("执行第三个方法...");
- return rand.nextInt(100);
- }
-
-
- }