private static void do1() { int maxPage = Page.getNowMaxPage(); int limit = 20; int page = 1; List<Item> items = new ArrayList<Item>(); do { items = Page.getPage(page); for (Item item : items) { item.generateType(); } } while (++page <= 2); }
private static void do2() { Item item = new Item(); item.load(1471); item.generateType(); }