idtest.java

来自「这是一本描述JDBC数据库的书籍」· Java 代码 · 共 58 行

JAVA
58
字号
/* * IDTest.java * * Created on June 10, 2005, 11:59 AM * * To change this template, choose Tools | Options and locate the template under * the Source Creation and Management node. Right-click the template and choose * Open. You can then make changes to the template in the Source Editor. */package ch02;import ch02.oid.DatabaseIDGenerator;import ch02.oid.HLIDGenerator;/** * * @author kevin */public class IDTest {        /** Creates a new instance of IDTest */    public IDTest() {    }    public static void main(String[] args){        for(int i = 1; i < 20; i ++){            System.out.println(DatabaseIDGenerator.nextEmployeeID());                    }        System.out.println("*************");        for(int i = 1; i < 20; i ++){            System.out.println(DatabaseIDGenerator.nextPersonID());        }        System.out.println("*******HLIDGenerator*********");        for(int i = 1; i < 20; i++){            System.out.println(HLIDGenerator.nextEmployeeID());        }        System.out.println("*************");        for(int i = 1; i < 20; i++){            System.out.println(HLIDGenerator.nextPersonID());        }        System.out.println("*************");        for(int i = 1; i < 20; i++){            System.out.println(HLIDGenerator.nextStudentID());        }            }}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?